Docs tab v2

This commit is contained in:
Darredevil 2014-07-25 01:26:34 +03:00
parent 61ebc4d15b
commit f78c48c893
3 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,4 @@
extends /templates/base
//extends /templates/base
block content

View file

@ -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

View file

@ -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