templates = app.templates templates.sidebarDoc = (doc, options = {}) -> link = """""" if options.disabled link += """Enable""" else link += """""" link += """#{doc.release}""" if doc.release link += """#{doc.name}""" link += " #{doc.version}" if options.fullName or options.disabled and doc.version link + "" templates.sidebarType = (type) -> """#{type.count}#{type.name}""" templates.sidebarEntry = (entry) -> """#{$.escape entry.name}""" templates.sidebarResult = (entry) -> addons = if entry.isIndex() and app.disabledDocs.contains(entry.doc) """Enable""" else """""" addons += """#{entry.doc.short_version}""" if entry.doc.version and not entry.isIndex() """#{addons}#{$.escape entry.name}""" templates.sidebarNoResults = -> html = """
No results.
""" html += """
Note: documentations must be enabled to appear in the search.
""" unless app.isSingleDoc() or app.disabledDocs.isEmpty() html templates.sidebarPageLink = (count) -> """Show more\u2026 (#{count})""" templates.sidebarLabel = (doc, options = {}) -> label = """""" templates.sidebarVersionedDoc = (doc, versions, options = {}) -> html = """
#{doc.name}
#{versions}
""" templates.sidebarDisabled = (options) -> """
Disabled (#{options.count})
""" templates.sidebarDisabledList = (html) -> """
#{html}
""" templates.sidebarDisabledVersionedDoc = (doc, versions) -> """#{doc.name}
#{versions}
""" templates.docPickerNote = """
Tip: for faster and better search results, select only the docs you need.
Vote for new documentation """