Hide Create New System/Create New Component links in menus from non-admins

This commit is contained in:
dpen2000 2014-04-22 18:18:37 -04:00
parent 8a42521cd0
commit 69b3fe4b8c
2 changed files with 6 additions and 5 deletions

View file

@ -30,9 +30,9 @@ nav.navbar.navbar-default(role='navigation')
li#patch-component-button
a(data-i18n="common.submit_patch") Submit Patch
li#create-new-component-button
a(data-i18n="editor.level_component_btn_new") Create New Component
if me.isAdmin()
li#create-new-component-button
a(data-i18n="editor.level_component_b_new") Create New Component
li.divider
li.dropdown-header Info

View file

@ -26,8 +26,9 @@ nav.navbar.navbar-default(role='navigation')
span.spl Unwatch
li#patch-system-button
a(data-i18n="common.submit_patch") Submit Patch
li#create-new-system
a(data-i18n="editor.level_system_btn_new") Create New System
if me.isAdmin()
li#create-new-system
a(data-i18n="editor.level_system_btn_new") Create New System
li.divider
li.dropdown-header Info
li#system-history-button