Commit 9c6cf5f4 authored by Ray Schamp's avatar Ray Schamp

Fix GH-237: Show My Classes in nav to educators

parent 4547c2b4
...@@ -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",
......
...@@ -25,6 +25,10 @@ var defaultMessages = defineMessages({ ...@@ -25,6 +25,10 @@ var defaultMessages = defineMessages({
id: 'general.messages', id: 'general.messages',
defaultMessage: 'Messages' defaultMessage: 'Messages'
}, },
myClasses: {
id: 'general.myClasses',
defaultMessage: 'My Classes'
},
myStuff: { myStuff: {
id: 'general.myStuff', id: 'general.myStuff',
defaultMessage: 'My Stuff' defaultMessage: 'My Stuff'
...@@ -281,6 +285,13 @@ var Navigation = React.createClass({ ...@@ -281,6 +285,13 @@ 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 {...defaultMessages.myClasses} />
</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