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 @@
"general.legal": "Legal",
"general.learnMore": "Learn More",
"general.messages": "Messages",
"general.myClasses": "My Classes",
"general.myStuff": "My Stuff",
"general.offlineEditor": "Offline Editor",
"general.profile": "Profile",
......
......@@ -25,6 +25,10 @@ var defaultMessages = defineMessages({
id: 'general.messages',
defaultMessage: 'Messages'
},
myClasses: {
id: 'general.myClasses',
defaultMessage: 'My Classes'
},
myStuff: {
id: 'general.myStuff',
defaultMessage: 'My Stuff'
......@@ -281,6 +285,13 @@ var Navigation = React.createClass({
<FormattedMessage {...defaultMessages.myStuff} />
</a>
</li>
{this.state.session.permissions.educator ? [
<li>
<a href="/educators/classes/">
<FormattedMessage {...defaultMessages.myClasses} />
</a>
</li>
] : []}
<li>
<a href="/accounts/settings/">
<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