mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Refactored how the editor sets up its special nav through base.jade.
This commit is contained in:
parent
4c1143f026
commit
6057bd94b9
2 changed files with 86 additions and 86 deletions
|
@ -1,10 +1,10 @@
|
||||||
#editor-level-view
|
#editor-level-view
|
||||||
|
&, #level-editor-top-nav
|
||||||
|
min-width: 1024px
|
||||||
|
|
||||||
a
|
a
|
||||||
font-family: helvetica, arial, sans serif
|
font-family: helvetica, arial, sans serif
|
||||||
|
|
||||||
#top-nav
|
|
||||||
display: none
|
|
||||||
|
|
||||||
position: absolute
|
position: absolute
|
||||||
top: 0px
|
top: 0px
|
||||||
left: 0px
|
left: 0px
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
.outer-content
|
.outer-content
|
||||||
background-color: $BG
|
background-color: $BG
|
||||||
position: absolute
|
position: absolute
|
||||||
top: 0
|
top: 35px
|
||||||
bottom: 0
|
bottom: 0
|
||||||
left: 0
|
left: 0
|
||||||
right: 0
|
right: 0
|
||||||
|
@ -73,10 +73,10 @@
|
||||||
|
|
||||||
#level-editor-tabs
|
#level-editor-tabs
|
||||||
position: absolute
|
position: absolute
|
||||||
left: 20px
|
left: 15px
|
||||||
right: 20px
|
right: 15px
|
||||||
top: 46px
|
top: 15px
|
||||||
bottom: 20px
|
bottom: 15px
|
||||||
|
|
||||||
.treema-root
|
.treema-root
|
||||||
background-color: white
|
background-color: white
|
||||||
|
|
|
@ -1,90 +1,90 @@
|
||||||
extends /templates/base
|
extends /templates/base
|
||||||
|
|
||||||
block outer_content
|
block header
|
||||||
.outer-content
|
if false
|
||||||
|
nav.navbar.navbar-default(role='navigation')#level-editor-top-nav
|
||||||
if false
|
.container-fluid
|
||||||
nav.navbar.navbar-default(role='navigation')#level-editor-top-nav
|
|
||||||
.container-fluid
|
|
||||||
ul.nav.navbar-nav
|
|
||||||
li
|
|
||||||
a(href="/editor/level")
|
|
||||||
span.glyphicon-home.glyphicon
|
|
||||||
|
|
||||||
else
|
|
||||||
nav.navbar.navbar-default(role='navigation')#level-editor-top-nav
|
|
||||||
ul.nav.navbar-nav
|
ul.nav.navbar-nav
|
||||||
li
|
li
|
||||||
a(href="/editor/level")
|
a(href="/editor/level")
|
||||||
span.glyphicon-home.glyphicon
|
span.glyphicon-home.glyphicon
|
||||||
ul.nav.navbar-nav.nav-tabs
|
|
||||||
|
else
|
||||||
li.active
|
nav.navbar.navbar-default(role='navigation')#level-editor-top-nav
|
||||||
a(href="#editor-level-thangs-tab-view", data-toggle="tab", data-i18n="editor.level_tab_thangs") Thangs
|
ul.nav.navbar-nav
|
||||||
li
|
li
|
||||||
a(href="#editor-level-scripts-tab-view", data-toggle="tab", data-i18n="editor.level_tab_scripts") Scripts
|
a(href="/editor/level")
|
||||||
li
|
span.glyphicon-home.glyphicon
|
||||||
a(href="#editor-level-settings-tab-view", data-toggle="tab", data-i18n="editor.level_tab_settings") Settings
|
ul.nav.navbar-nav.nav-tabs
|
||||||
li
|
|
||||||
a(href="#editor-level-components-tab-view", data-toggle="tab", data-i18n="editor.level_tab_components") Components
|
li.active
|
||||||
li
|
a(href="#editor-level-thangs-tab-view", data-toggle="tab", data-i18n="editor.level_tab_thangs") Thangs
|
||||||
a(href="#editor-level-systems-tab-view", data-toggle="tab", data-i18n="editor.level_tab_systems") Systems
|
li
|
||||||
li
|
a(href="#editor-level-scripts-tab-view", data-toggle="tab", data-i18n="editor.level_tab_scripts") Scripts
|
||||||
a(href="#editor-level-patches", data-toggle="tab")#patches-tab
|
li
|
||||||
span(data-i18n="resources.patches").spr Patches
|
a(href="#editor-level-settings-tab-view", data-toggle="tab", data-i18n="editor.level_tab_settings") Settings
|
||||||
- var patches = level.get('patches')
|
li
|
||||||
if patches && patches.length
|
a(href="#editor-level-components-tab-view", data-toggle="tab", data-i18n="editor.level_tab_components") Components
|
||||||
span.badge= patches.length
|
li
|
||||||
|
a(href="#editor-level-systems-tab-view", data-toggle="tab", data-i18n="editor.level_tab_systems") Systems
|
||||||
.navbar-header
|
li
|
||||||
span.navbar-brand #{level.attributes.name}
|
a(href="#editor-level-patches", data-toggle="tab")#patches-tab
|
||||||
|
span(data-i18n="resources.patches").spr Patches
|
||||||
|
- var patches = level.get('patches')
|
||||||
|
if patches && patches.length
|
||||||
|
span.badge= patches.length
|
||||||
|
|
||||||
|
.navbar-header
|
||||||
|
span.navbar-brand #{level.attributes.name}
|
||||||
|
|
||||||
ul.nav.navbar-nav.navbar-right
|
ul.nav.navbar-nav.navbar-right
|
||||||
if authorized
|
if authorized
|
||||||
li
|
li
|
||||||
a
|
|
||||||
span.glyphicon-floppy-disk.glyphicon
|
|
||||||
else
|
|
||||||
li
|
|
||||||
a
|
|
||||||
span.glyphicon-floppy-disk.glyphicon
|
|
||||||
|
|
||||||
li(title="⌃↩ or ⌘↩: Play preview of current level")
|
|
||||||
a
|
a
|
||||||
span.glyphicon-play.glyphicon
|
span.glyphicon-floppy-disk.glyphicon
|
||||||
li.dropdown
|
else
|
||||||
a(data-toggle='dropdown')
|
li
|
||||||
span.glyphicon-chevron-down.glyphicon
|
a
|
||||||
ul.dropdown-menu
|
span.glyphicon-floppy-disk.glyphicon
|
||||||
li.dropdown-header Actions
|
|
||||||
li#watch-button
|
li(title="⌃↩ or ⌘↩: Play preview of current level")
|
||||||
a
|
a
|
||||||
span.watch
|
span.glyphicon-play.glyphicon
|
||||||
span.glyphicon.glyphicon-eye-open
|
li.dropdown
|
||||||
span.spl Watch
|
a(data-toggle='dropdown')
|
||||||
span.unwatch.secret
|
span.glyphicon-chevron-down.glyphicon
|
||||||
span.glyphicon.glyphicon-eye-close
|
ul.dropdown-menu
|
||||||
span.spl Unwatch
|
li.dropdown-header Actions
|
||||||
|
li#watch-button
|
||||||
li(class=anonymous ? "disabled": "")
|
a
|
||||||
a(data-i18n="common.fork")#fork-level-start-button Fork
|
span.watch
|
||||||
li(class=anonymous ? "disabled": "")
|
span.glyphicon.glyphicon-eye-open
|
||||||
a(data-toggle="coco-modal", data-target="modal/revert", data-i18n="editor.revert")#revert-button Revert
|
span.spl Watch
|
||||||
li.divider
|
span.unwatch.secret
|
||||||
li.dropdown-header Info
|
span.glyphicon.glyphicon-eye-close
|
||||||
li#history-button
|
span.spl Unwatch
|
||||||
a(href='#', data-i18n="general.version_history") Version History
|
|
||||||
li.divider
|
li(class=anonymous ? "disabled": "")
|
||||||
li.dropdown-header Help
|
a(data-i18n="common.fork")#fork-level-start-button Fork
|
||||||
li
|
li(class=anonymous ? "disabled": "")
|
||||||
a(href='https://github.com/codecombat/codecombat/wiki/Artisan-Home', data-i18n="editor.wiki", target="_blank") Wiki
|
a(data-toggle="coco-modal", data-target="modal/revert", data-i18n="editor.revert")#revert-button Revert
|
||||||
li
|
li.divider
|
||||||
a(href='http://www.hipchat.com/g3plnOKqa', data-i18n="editor.live_chat", target="_blank") Live Chat
|
li.dropdown-header Info
|
||||||
li
|
li#history-button
|
||||||
a(href='http://discourse.codecombat.com/category/artisan', data-i18n="nav.forum", target="_blank") Forum
|
a(href='#', data-i18n="general.version_history") Version History
|
||||||
li
|
li.divider
|
||||||
a(data-toggle="coco-modal", data-target="modal/contact", data-i18n="nav.contact") Email
|
li.dropdown-header Help
|
||||||
|
li
|
||||||
|
a(href='https://github.com/codecombat/codecombat/wiki/Artisan-Home', data-i18n="editor.wiki", target="_blank") Wiki
|
||||||
|
li
|
||||||
|
a(href='http://www.hipchat.com/g3plnOKqa', data-i18n="editor.live_chat", target="_blank") Live Chat
|
||||||
|
li
|
||||||
|
a(href='http://discourse.codecombat.com/category/artisan', data-i18n="nav.forum", target="_blank") Forum
|
||||||
|
li
|
||||||
|
a(data-toggle="coco-modal", data-target="modal/contact", data-i18n="nav.contact") Email
|
||||||
|
|
||||||
|
block outer_content
|
||||||
|
.outer-content
|
||||||
div.tab-content#level-editor-tabs
|
div.tab-content#level-editor-tabs
|
||||||
div.tab-pane.active#editor-level-thangs-tab-view
|
div.tab-pane.active#editor-level-thangs-tab-view
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue