mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -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
|
li#patch-component-button
|
||||||
a(data-i18n="common.submit_patch") Submit Patch
|
a(data-i18n="common.submit_patch") Submit Patch
|
||||||
|
if me.isAdmin()
|
||||||
li#create-new-component-button
|
li#create-new-component-button
|
||||||
a(data-i18n="editor.level_component_btn_new") Create New Component
|
a(data-i18n="editor.level_component_b_new") Create New Component
|
||||||
|
|
||||||
li.divider
|
li.divider
|
||||||
li.dropdown-header Info
|
li.dropdown-header Info
|
||||||
|
|
|
@ -26,8 +26,9 @@ nav.navbar.navbar-default(role='navigation')
|
||||||
span.spl Unwatch
|
span.spl Unwatch
|
||||||
li#patch-system-button
|
li#patch-system-button
|
||||||
a(data-i18n="common.submit_patch") Submit Patch
|
a(data-i18n="common.submit_patch") Submit Patch
|
||||||
li#create-new-system
|
if me.isAdmin()
|
||||||
a(data-i18n="editor.level_system_btn_new") Create New System
|
li#create-new-system
|
||||||
|
a(data-i18n="editor.level_system_btn_new") Create New System
|
||||||
li.divider
|
li.divider
|
||||||
li.dropdown-header Info
|
li.dropdown-header Info
|
||||||
li#system-history-button
|
li#system-history-button
|
||||||
|
|
Loading…
Reference in a new issue