Fix no result note

This commit is contained in:
Thibaut 2015-02-08 09:40:43 -05:00
parent add213e0f4
commit 5066259cdc

View file

@ -18,7 +18,7 @@ templates.sidebarResult = (entry) ->
"""<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>"""
templates.sidebarNoResults = ->
info = if app.isSingleDoc() or !app.disabledDocs.isEmpty() then '' else """
info = if app.isSingleDoc() or app.disabledDocs.isEmpty() then '' else """
<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>
"""
""" <div class="_list-noresults">No results. #{info}</div> """