mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Docs tab v2
This commit is contained in:
parent
61ebc4d15b
commit
f78c48c893
3 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
extends /templates/base
|
||||
//extends /templates/base
|
||||
|
||||
|
||||
block content
|
||||
|
|
|
@ -34,7 +34,7 @@ block header
|
|||
if patches && patches.length
|
||||
span.badge= patches.length
|
||||
li
|
||||
a(href="#docs-component-view", data-toggle="tab", data-i18n="editor.docs-component-view") Documentation
|
||||
a(href="#docs-components-view", data-toggle="tab", data-i18n="editor.level_tab_docs") Documentation
|
||||
.navbar-header
|
||||
span.navbar-brand #{level.attributes.name}
|
||||
|
||||
|
@ -115,7 +115,7 @@ block outer_content
|
|||
div.tab-pane#editor-level-patches
|
||||
.patches-view
|
||||
|
||||
div.tab-pane#docs-component-view
|
||||
div.tab-pane#docs-components-view
|
||||
|
||||
div#error-view
|
||||
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
RootView = require 'views/kinds/RootView'
|
||||
#RootView = require 'views/kinds/RootView'
|
||||
CocoView = require 'views/kinds/RootView'
|
||||
template = require 'templates/docs/components'
|
||||
CocoCollection = require 'collections/CocoCollection'
|
||||
LevelComponent = require 'models/LevelComponent'
|
||||
|
||||
class UnnamedView extends CocoView
|
||||
className: 'tab-pane'
|
||||
|
||||
class ComponentDocsCollection extends CocoCollection
|
||||
url: '/db/level.component?project=name,description,dependencies,propertyDocumentation,code'
|
||||
model: LevelComponent
|
||||
|
|
Loading…
Reference in a new issue