mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-16 00:19:50 -05:00
Merge branch 'Darredevil-master'
This commit is contained in:
commit
6d467adb46
3 changed files with 38 additions and 4 deletions
|
@ -1,2 +1,18 @@
|
|||
#docs-components-view
|
||||
color: saddlebrown
|
||||
color: saddlebrown
|
||||
|
||||
.row
|
||||
|
||||
.index-column, .documentation-column
|
||||
overflow-y: scroll
|
||||
overflow-x: hidden
|
||||
min-height: 600px
|
||||
|
||||
> ul
|
||||
padding: 0px 20px 20px 20px
|
||||
|
||||
|
||||
.documentation-column
|
||||
|
||||
.specialList
|
||||
list-style-type: none
|
||||
|
|
|
@ -1,6 +1,23 @@
|
|||
extends /templates/base
|
||||
|
||||
|
||||
block content
|
||||
ul
|
||||
for component in components
|
||||
li= component.get('name')
|
||||
.row
|
||||
.col-xs-3.index-column.nano
|
||||
ul.nav.nav-list.list-group.nano-content
|
||||
for component in components
|
||||
li= component.get('name')
|
||||
ul
|
||||
each doc in component.attributes.propertyDocumentation
|
||||
a(href="##{component.get('name')}#{doc.name}")
|
||||
li
|
||||
| #{doc.name}
|
||||
.col-xs-9.documentation-column.nano
|
||||
ul.nano-content
|
||||
for component in components
|
||||
each doc in component.attributes.propertyDocumentation
|
||||
li(id="#{component.get('name')}#{doc.name}")
|
||||
| #{doc.name}
|
||||
ul.specialList
|
||||
li=doc.description
|
||||
|
|
@ -18,6 +18,7 @@ module.exports = class UnnamedView extends RootView
|
|||
|
||||
onLoaded: ->
|
||||
console.log 'we have the components...', (c.get('name') for c in @componentDocs.models)
|
||||
console.log 'we have the attributes...', (c.attributes for c in @componentDocs.models)
|
||||
super()
|
||||
|
||||
getRenderData: ->
|
||||
|
|
Loading…
Reference in a new issue