Showing the changes to assets/javascripts (2 of 2 files). Show all
Unified · Split
| @@ -30,7 +30,8 @@ templates.sidebarLabel = (doc, options = {}) -> · 29 unmodified lines | |||
| 30 | templates.sidebarDisabledList = (options) -> | 30 | templates.sidebarDisabledList = (options) -> |
| 31 | """<div class="_disabled-list">#{templates.render 'sidebarDoc', options.docs, disabled: true}</div>""" | 31 | """<div class="_disabled-list">#{templates.render 'sidebarDoc', options.docs, disabled: true}</div>""" |
| 32 | 32 | ||
| 33 | templates.sidebarDisabled = '<h6 class="_list-title"><span class="_list-arrow"></span>Disabled</h6>' | 33 | templates.sidebarDisabled = (options) -> |
| 34 | """<h6 class="_list-title"><span class="_list-arrow"></span>Disabled (#{options.count})</h6>""" | ||
| 34 | 35 | ||
| 35 | templates.sidebarVote = '<a href="https://trello.com/b/6BmTulfx/devdocs-documentation" class="_list-link" target="_blank">Vote for new documentation</a>' | 36 | templates.sidebarVote = '<a href="https://trello.com/b/6BmTulfx/devdocs-documentation" class="_list-link" target="_blank">Vote for new documentation</a>' |
| 36 | 37 | ||
| @@ -41,7 +41,7 @@ class app.views.DocList extends app.View · 40 unmodified lines | |||
| 41 | return | 41 | return |
| 42 | 42 | ||
| 43 | renderDisabled: -> | 43 | renderDisabled: -> |
| 44 | @append @tmpl('sidebarDisabled') | 44 | @append @tmpl('sidebarDisabled', count: app.disabledDocs.size()) |
| 45 | @renderDisabledList() | 45 | @renderDisabledList() |
| 46 | return | 46 | return |
| 47 | 47 | ||