History

Show number of disable docs

Thibaut committed 12 years ago

Commit 9f543081 parent 6ae0d372 files · +3 −2Browse files

Showing the changes to assets/javascripts (2 of 2 files). Show all

Unified · Split

2 files
  1. assets/javascripts/templates/sidebar_tmpl.coffee +2 −1
  2. assets/javascripts/views/sidebar/doc_list.coffee +1 −1
assets/javascripts/templates/sidebar_tmpl.coffee+2−1
@@ -30,7 +30,8 @@ templates.sidebarLabel = (doc, options = {}) -> · 29 unmodified lines
3030 templates.sidebarDisabledList = (options) ->
3131 """<div class="_disabled-list">#{templates.render 'sidebarDoc', options.docs, disabled: true}</div>"""
3232
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>"""
3435
3536 templates.sidebarVote = '<a href="https://trello.com/b/6BmTulfx/devdocs-documentation" class="_list-link" target="_blank">Vote for new documentation</a>'
3637
assets/javascripts/views/sidebar/doc_list.coffee+1−1
@@ -41,7 +41,7 @@ class app.views.DocList extends app.View · 40 unmodified lines
4141 return
4242
4343 renderDisabled: ->
44− @append @tmpl('sidebarDisabled')
44+ @append @tmpl('sidebarDisabled', count: app.disabledDocs.size())
4545 @renderDisabledList()
4646 return
4747