Unified · Split
| @@ -31,9 +31,12 @@ class app.views.DocList extends app.View · 30 unmodified lines | ||
| 31 | 31 | |
| 32 | 32 | render: => |
| 33 | 33 | @html @tmpl('sidebarDoc', app.docs.all()) |
| 34 | − unless app.isSingleDoc() or app.settings.hasDocs() | |
| 35 | − @append @tmpl('sidebarDisabled') + | |
| 36 | − @tmpl('sidebarDoc', app.disabledDocs.all(), disabled: true) | |
| 34 | + @renderDisabled() unless app.isSingleDoc() or app.settings.hasDocs() | |
| 35 | + return | |
| 36 | + | |
| 37 | + renderDisabled: -> | |
| 38 | + @append @tmpl('sidebarDisabled') + | |
| 39 | + @tmpl('sidebarDoc', app.disabledDocs.all(), disabled: true) | |
| 37 | 40 | return |
| 38 | 41 | |
| 39 | 42 | reset: -> |