2014-01-03 13:32:13 -05:00
|
|
|
extends /templates/base
|
|
|
|
|
2014-04-17 14:27:20 -04:00
|
|
|
block header
|
2014-04-17 14:35:09 -04:00
|
|
|
if level.loading
|
2014-04-17 14:27:20 -04:00
|
|
|
nav.navbar.navbar-default(role='navigation')#level-editor-top-nav
|
|
|
|
.container-fluid
|
2014-04-17 14:02:00 -04:00
|
|
|
ul.nav.navbar-nav
|
|
|
|
li
|
|
|
|
a(href="/editor/level")
|
|
|
|
span.glyphicon-home.glyphicon
|
2016-08-10 16:15:38 -04:00
|
|
|
|
2014-04-17 14:27:20 -04:00
|
|
|
else
|
|
|
|
nav.navbar.navbar-default(role='navigation')#level-editor-top-nav
|
|
|
|
ul.nav.navbar-nav
|
|
|
|
li
|
|
|
|
a(href="/editor/level")
|
|
|
|
span.glyphicon-home.glyphicon
|
2016-08-10 16:15:38 -04:00
|
|
|
|
2014-04-17 14:27:20 -04:00
|
|
|
ul.nav.navbar-nav.nav-tabs
|
|
|
|
li.active
|
2014-09-02 17:52:56 -04:00
|
|
|
a(href="#thangs-tab-view", data-toggle="tab", data-i18n="editor.level_tab_thangs") Thangs
|
2014-04-17 14:27:20 -04:00
|
|
|
li
|
|
|
|
a(href="#editor-level-scripts-tab-view", data-toggle="tab", data-i18n="editor.level_tab_scripts") Scripts
|
|
|
|
li
|
|
|
|
a(href="#editor-level-settings-tab-view", data-toggle="tab", data-i18n="editor.level_tab_settings") Settings
|
|
|
|
li
|
2014-05-07 19:24:13 -04:00
|
|
|
a(href="#editor-level-components-tab-view", data-toggle="tab", data-i18n="editor.level_tab_components")#components-tab Components
|
2014-04-17 14:27:20 -04:00
|
|
|
li
|
2014-09-02 19:50:09 -04:00
|
|
|
a(href="#systems-tab-view", data-toggle="tab", data-i18n="editor.level_tab_systems") Systems
|
2016-01-13 18:54:57 -05:00
|
|
|
li
|
|
|
|
a(href="#editor-level-tasks-tab-view", data-toggle="tab", data-i18n="editor.level_tab_tasks")#tasks-tab= "Tasks" + " " + view.getTaskCompletionRatio()
|
2014-04-17 14:27:20 -04:00
|
|
|
li
|
|
|
|
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
|
2014-08-04 16:21:43 -04:00
|
|
|
li
|
2014-09-06 12:32:01 -04:00
|
|
|
a(href="#related-achievements-view", data-toggle="tab", data-i18n="user.achievements_title") Achievements
|
2014-07-20 20:52:34 -04:00
|
|
|
li
|
2014-08-29 01:32:55 -04:00
|
|
|
a(href="#editor-level-documentation", data-toggle="tab", data-i18n="editor.level_tab_docs") Documentation
|
2014-08-31 02:04:45 -04:00
|
|
|
li
|
|
|
|
a(href="#level-feedback-view", data-toggle="tab")
|
|
|
|
.glyphicon.glyphicon-star
|
2014-04-17 14:27:20 -04:00
|
|
|
.navbar-header
|
|
|
|
span.navbar-brand #{level.attributes.name}
|
|
|
|
|
|
|
|
ul.nav.navbar-nav.navbar-right
|
2015-01-05 15:19:46 -05:00
|
|
|
li#undo-button
|
2014-07-25 14:45:22 -04:00
|
|
|
a
|
|
|
|
span.glyphicon-arrow-left.glyphicon
|
2015-01-05 15:19:46 -05:00
|
|
|
li#redo-button
|
2014-07-24 15:36:41 -04:00
|
|
|
a
|
2014-08-30 02:09:38 -04:00
|
|
|
span.glyphicon-arrow-right.glyphicon
|
2016-01-13 18:54:57 -05:00
|
|
|
li#artisan-guide-button
|
|
|
|
a
|
|
|
|
span.glyphicon-book.glyphicon
|
2014-04-17 14:27:20 -04:00
|
|
|
if authorized
|
2014-04-17 16:37:08 -04:00
|
|
|
li#commit-level-start-button
|
2014-04-17 14:27:20 -04:00
|
|
|
a
|
|
|
|
span.glyphicon-floppy-disk.glyphicon
|
|
|
|
else
|
2014-04-17 16:37:08 -04:00
|
|
|
li#level-patch-button
|
2014-04-17 14:27:20 -04:00
|
|
|
a
|
|
|
|
span.glyphicon-floppy-disk.glyphicon
|
2016-01-13 18:54:57 -05:00
|
|
|
|
2016-07-15 12:53:08 -04:00
|
|
|
if level.isType('ladder')
|
2014-07-05 16:54:41 -04:00
|
|
|
li.dropdown
|
2014-07-14 11:40:36 -04:00
|
|
|
a(data-toggle='dropdown').play-with-team-parent
|
2014-07-05 16:54:41 -04:00
|
|
|
span.glyphicon-play.glyphicon
|
|
|
|
ul.dropdown-menu
|
|
|
|
li.dropdown-header Play As Which Team?
|
|
|
|
li
|
|
|
|
for team in ['humans', 'ogres']
|
2014-08-30 17:30:53 -04:00
|
|
|
a.play-with-team-button(data-team=team)= team + ' vs. AI'
|
|
|
|
for match in recentlyPlayedOpponents
|
|
|
|
a.play-with-team-button(data-team=match.yourTeam, data-opponent=match.opponentSessionID)= match.yourTeam + ' vs. ' + match.opponentName
|
2016-08-10 16:15:38 -04:00
|
|
|
|
2014-07-05 16:54:41 -04:00
|
|
|
else
|
2014-12-12 17:25:17 -05:00
|
|
|
li(data-i18n="[title]general.play_preview", title="Play preview of current level")#play-button
|
2014-07-05 16:54:41 -04:00
|
|
|
a
|
|
|
|
span.glyphicon-play.glyphicon
|
2014-04-17 14:27:20 -04:00
|
|
|
li.dropdown
|
|
|
|
a(data-toggle='dropdown')
|
|
|
|
span.glyphicon-chevron-down.glyphicon
|
|
|
|
ul.dropdown-menu
|
2014-12-12 17:25:17 -05:00
|
|
|
li.dropdown-header(data-i18n="common.actions") Actions
|
2014-04-17 14:35:09 -04:00
|
|
|
li
|
|
|
|
a#level-watch-button
|
2014-04-17 14:27:20 -04:00
|
|
|
span.watch
|
|
|
|
span.glyphicon.glyphicon-eye-open
|
2014-07-13 12:31:31 -04:00
|
|
|
span.spl(data-i18n="common.watch") Watch
|
2014-04-17 14:27:20 -04:00
|
|
|
span.unwatch.secret
|
|
|
|
span.glyphicon.glyphicon-eye-close
|
2014-07-13 12:31:31 -04:00
|
|
|
span.spl(data-i18n="common.unwatch") Unwatch
|
2016-08-10 16:15:38 -04:00
|
|
|
|
2014-04-17 14:27:20 -04:00
|
|
|
li(class=anonymous ? "disabled": "")
|
2014-08-13 14:36:00 -04:00
|
|
|
a(data-i18n="common.fork")#fork-start-button Fork
|
2014-04-17 14:27:20 -04:00
|
|
|
li(class=anonymous ? "disabled": "")
|
2014-12-20 19:02:41 -05:00
|
|
|
a(data-toggle="coco-modal", data-target="modal/RevertModal", data-i18n="editor.revert", disabled=anonymous)#revert-button Revert
|
2014-06-24 06:35:14 -04:00
|
|
|
li(class=anonymous ? "disabled": "")
|
2014-12-20 19:02:41 -05:00
|
|
|
a(data-toggle="coco-modal", data-target="editor/level/modals/GenerateTerrainModal", data-i18n="editor.generate_terrain", disabled=anonymous).generate-terrain-button Generate Terrain
|
2014-04-22 20:56:41 -04:00
|
|
|
li(class=anonymous ? "disabled": "")
|
|
|
|
a(data-i18n="editor.pop_i18n")#pop-level-i18n-button Populate i18n
|
2016-07-24 00:03:16 -04:00
|
|
|
if view.courseID
|
|
|
|
li(class=anonymous ? "disabled": "")
|
|
|
|
a.play-classroom-level(data-classroom=true, data-code-language="javascript") Play Classroom JavaScript
|
|
|
|
li(class=anonymous ? "disabled": "")
|
|
|
|
a.play-classroom-level(data-classroom=true, data-code-language="python") Play Classroom Python
|
2014-04-17 14:27:20 -04:00
|
|
|
li.divider
|
2014-12-12 17:25:17 -05:00
|
|
|
li.dropdown-header(data-i18n="common.info") Info
|
2014-04-17 14:29:12 -04:00
|
|
|
li#level-history-button
|
2014-04-17 14:27:20 -04:00
|
|
|
a(href='#', data-i18n="general.version_history") Version History
|
|
|
|
li.divider
|
2014-12-12 17:25:17 -05:00
|
|
|
li.dropdown-header(data-i18n="common.help") Help
|
2014-04-17 14:02:00 -04:00
|
|
|
li
|
2014-04-17 14:27:20 -04:00
|
|
|
a(href='https://github.com/codecombat/codecombat/wiki/Artisan-Home', data-i18n="editor.wiki", target="_blank") Wiki
|
|
|
|
li
|
2015-10-30 03:07:58 -04:00
|
|
|
a(href='https://coco-slack-invite.herokuapp.com/', data-i18n="editor.live_chat", target="_blank") Live Chat
|
2014-04-17 14:27:20 -04:00
|
|
|
li
|
|
|
|
a(href='http://discourse.codecombat.com/category/artisan', data-i18n="nav.forum", target="_blank") Forum
|
|
|
|
li
|
2014-11-28 20:49:41 -05:00
|
|
|
a(data-toggle="coco-modal", data-target="core/ContactModal", data-i18n="nav.contact") Email
|
2014-04-17 14:02:00 -04:00
|
|
|
|
2014-04-17 14:27:20 -04:00
|
|
|
block outer_content
|
|
|
|
.outer-content
|
2014-01-28 00:06:27 -05:00
|
|
|
div.tab-content#level-editor-tabs
|
2014-09-02 17:52:56 -04:00
|
|
|
div.tab-pane.active#thangs-tab-view
|
2016-08-10 16:15:38 -04:00
|
|
|
|
2014-01-28 15:27:11 -05:00
|
|
|
div.tab-pane#editor-level-scripts-tab-view
|
2016-08-10 16:15:38 -04:00
|
|
|
|
2014-01-28 15:27:11 -05:00
|
|
|
div.tab-pane#editor-level-settings-tab-view
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-28 15:27:11 -05:00
|
|
|
div.tab-pane#editor-level-components-tab-view
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-09-02 19:50:09 -04:00
|
|
|
div.tab-pane#systems-tab-view
|
2016-01-13 18:54:57 -05:00
|
|
|
|
|
|
|
div.tab-pane#editor-level-tasks-tab-view
|
2016-08-10 16:15:38 -04:00
|
|
|
|
2016-07-11 01:01:33 -04:00
|
|
|
div.tab-pane#editor-level-patches.nano
|
|
|
|
.nano-content
|
|
|
|
.patches-view
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-08-04 16:21:43 -04:00
|
|
|
div.tab-pane#related-achievements-view
|
|
|
|
|
2014-08-29 01:32:55 -04:00
|
|
|
div.tab-pane#editor-level-documentation
|
|
|
|
div.tab-content
|
2016-08-05 01:12:18 -04:00
|
|
|
ul.nav.nav-pills.nav-justified
|
|
|
|
li
|
|
|
|
a(href="#components-documentation-view", data-toggle="pill", data-i18n="resources.components") Components
|
|
|
|
li
|
|
|
|
a(href="#systems-documentation-view", data-toggle="pill", data-i18n="resources.systems") Systems
|
2014-08-29 01:32:55 -04:00
|
|
|
div.tab-pane#components-documentation-view
|
|
|
|
div.tab-pane#systems-documentation-view
|
2014-07-20 20:52:34 -04:00
|
|
|
|
2014-08-31 02:04:45 -04:00
|
|
|
div.tab-pane#level-feedback-view
|
|
|
|
|
2014-08-04 16:21:43 -04:00
|
|
|
block footer
|