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
30templates.sidebarDisabledList = (options) ->30templates.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
33templates.sidebarDisabled = '<h6 class="_list-title"><span class="_list-arrow"></span>Disabled</h6>'33templates.sidebarDisabled = (options) ->
34 """<h6 class="_list-title"><span class="_list-arrow"></span>Disabled (#{options.count})</h6>"""
34 35
35templates.sidebarVote = '<a href="https://trello.com/b/6BmTulfx/devdocs-documentation" class="_list-link" target="_blank">Vote for new documentation</a>'36templates.sidebarVote = '<a href="https://trello.com/b/6BmTulfx/devdocs-documentation" class="_list-link" target="_blank">Vote for new documentation</a>'
36 37
assets/javascripts/views/sidebar/doc_list.coffee+1−1
@@ -41,7 +41,7 @@ class app.views.DocList extends app.View · 40 unmodified lines
41 return41 return
42 42
43 renderDisabled: ->43 renderDisabled: ->
44 @append @tmpl('sidebarDisabled')44 @append @tmpl('sidebarDisabled', count: app.disabledDocs.size())
45 @renderDisabledList()45 @renderDisabledList()
46 return46 return
47 47