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 = """