This commit is contained in:
Darredevil 2014-07-21 03:52:34 +03:00
parent e43afcc0a9
commit 61ebc4d15b
2 changed files with 6 additions and 1 deletions
app
templates/editor/level
views/editor/level

View file

@ -33,7 +33,8 @@ block header
- var patches = level.get('patches')
if patches && patches.length
span.badge= patches.length
li
a(href="#docs-component-view", data-toggle="tab", data-i18n="editor.docs-component-view") Documentation
.navbar-header
span.navbar-brand #{level.attributes.name}
@ -114,6 +115,8 @@ block outer_content
div.tab-pane#editor-level-patches
.patches-view
div.tab-pane#docs-component-view
div#error-view
block footer

View file

@ -16,6 +16,7 @@ LevelForkView = require './fork_view'
SaveVersionModal = require 'views/modal/save_version_modal'
PatchesView = require 'views/editor/patches_view'
VersionHistoryView = require './versions_view'
ComponentDocsView = require 'views/docs/components_view'
module.exports = class EditorLevelView extends RootView
id: 'editor-level-view'
@ -71,6 +72,7 @@ module.exports = class EditorLevelView extends RootView
@scriptsTab = @insertSubView new ScriptsTabView world: @world, supermodel: @supermodel, files: @files
@componentsTab = @insertSubView new ComponentsTabView supermodel: @supermodel
@systemsTab = @insertSubView new SystemsTabView supermodel: @supermodel
@componentDocsTab = @insertSubView new ComponentDocsView supermodel: @supermodel
Backbone.Mediator.publish 'level-loaded', level: @level
@showReadOnly() if me.get('anonymous')
@patchesView = @insertSubView(new PatchesView(@level), @$el.find('.patches-view'))