Commit 6adb6dd2 authored by Ray Schamp's avatar Ray Schamp

Merge pull request #260 from rschamp/bugfix/GH-237

Fix GH-237: Show My Classes in nav to educators
parents e6448ae4 961d97eb
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
"general.legal": "Legal", "general.legal": "Legal",
"general.learnMore": "Learn More", "general.learnMore": "Learn More",
"general.messages": "Messages", "general.messages": "Messages",
"general.myClasses": "My Classes",
"general.myStuff": "My Stuff", "general.myStuff": "My Stuff",
"general.offlineEditor": "Offline Editor", "general.offlineEditor": "Offline Editor",
"general.profile": "Profile", "general.profile": "Profile",
......
...@@ -281,6 +281,15 @@ var Navigation = React.createClass({ ...@@ -281,6 +281,15 @@ var Navigation = React.createClass({
<FormattedMessage {...defaultMessages.myStuff} /> <FormattedMessage {...defaultMessages.myStuff} />
</a> </a>
</li> </li>
{this.state.session.permissions.educator ? [
<li>
<a href="/educators/classes/">
<FormattedMessage
id='general.myClasses'
defaultMessage={'My Classes'} />
</a>
</li>
] : []}
<li> <li>
<a href="/accounts/settings/"> <a href="/accounts/settings/">
<FormattedMessage <FormattedMessage
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment