Refactor DocList#render

pull/90/head
Thibaut 11 years ago
parent 6cfc8fc50b
commit 5f5398f503

@ -31,9 +31,12 @@ class app.views.DocList extends app.View
render: =>
@html @tmpl('sidebarDoc', app.docs.all())
unless app.isSingleDoc() or app.settings.hasDocs()
@append @tmpl('sidebarDisabled') +
@tmpl('sidebarDoc', app.disabledDocs.all(), disabled: true)
@renderDisabled() unless app.isSingleDoc() or app.settings.hasDocs()
return
renderDisabled: ->
@append @tmpl('sidebarDisabled') +
@tmpl('sidebarDoc', app.disabledDocs.all(), disabled: true)
return
reset: ->

Loading…
Cancel
Save