mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Hide Create New System/Create New Component links in menus from non-admins
This commit is contained in:
parent
8a42521cd0
commit
69b3fe4b8c
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue