| @@ -18,10 +18,11 @@ templates.sidebarResult = (entry) -> · 17 unmodified lines |
| 18 | """<a href="#{entry.fullPath()}" class="_list-item _list-hover _list-result _icon-#{entry.doc.slug}"><span class="_list-reveal" data-reset-list title="Reveal in list"></span>#{$.escape entry.name}</a>""" | 18 | """<a href="#{entry.fullPath()}" class="_list-item _list-hover _list-result _icon-#{entry.doc.slug}"><span class="_list-reveal" data-reset-list title="Reveal in list"></span>#{$.escape entry.name}</a>""" |
| 19 | | 19 | |
| 20 | templates.sidebarNoResults = -> | 20 | templates.sidebarNoResults = -> |
| 21 | info = if app.isSingleDoc() or app.disabledDocs.isEmpty() then '' else """ | 21 | html = """ <div class="_list-note">No results.</div> """ |
| 22 | <span class="_list-noresults-note">Note: documentations must be <a class="_list-noresults-link" data-pick-docs>enabled</a> to appear in the search.</span> | 22 | html += """ |
| 23 | """ | 23 | <div class="_list-note">Note: documentations must be <a class="_list-note-link" data-pick-docs>enabled</a> to appear in the search.</div> |
| 24 | """ <div class="_list-noresults">No results. #{info}</div> """ | 24 | """ unless app.isSingleDoc() or app.disabledDocs.isEmpty() |
| | 25 | html |
| 25 | | 26 | |
| 26 | templates.sidebarPageLink = (count) -> | 27 | templates.sidebarPageLink = (count) -> |
| 27 | """<span class="_list-item _list-pagelink">Show more\u2026 (#{count})</span>""" | 28 | """<span class="_list-item _list-pagelink">Show more\u2026 (#{count})</span>""" |
| @@ -39,7 +40,10 @@ templates.sidebarDisabledList = (options) -> · 11 unmodified lines |
| 39 | templates.sidebarDisabled = (options) -> | 40 | templates.sidebarDisabled = (options) -> |
| 40 | """<h6 class="_list-title"><span class="_list-arrow"></span>Disabled (#{options.count})</h6>""" | 41 | """<h6 class="_list-title"><span class="_list-arrow"></span>Disabled (#{options.count})</h6>""" |
| 41 | | 42 | |
| 42 | templates.sidebarVote = '<a href="https://trello.com/b/6BmTulfx/devdocs-documentation" class="_list-link" target="_blank">Vote for new documentation</a>' | 43 | templates.sidebarPickerNote = """ |
| | 44 | <div class="_list-note">Tip: for faster and better search results, select only the docs you need.</div> |
| | 45 | <a href="https://trello.com/b/6BmTulfx/devdocs-documentation" class="_list-link" target="_blank">Vote for new documentation</a> |
| | 46 | """ |
| 43 | | 47 | |
| 44 | sidebarFooter = (html) -> """<div class="_sidebar-footer">#{html}</div>""" | 48 | sidebarFooter = (html) -> """<div class="_sidebar-footer">#{html}</div>""" |
| 45 | | 49 | |