templates = app.templates
arrow = """"""
templates.sidebarDoc = (doc, options = {}) ->
link = """"""
if options.disabled
link += """Enable"""
else
link += arrow
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) ->
"""#{arrow}#{type.count}#{$.escape type.name}"""
templates.sidebarEntry = (entry) ->
"""#{$.escape entry.name}"""
templates.sidebarResult = (entry) ->
addons = if entry.isIndex() and app.disabledDocs.contains(entry.doc)
"""#{_ en: "Enable", ja: "有効"}"""
else
""""""
addons += """#{entry.doc.short_version}""" if entry.doc.version and not entry.isIndex()
"""#{addons}#{$.escape entry.name}"""
templates.sidebarNoResults = ->
html = """
#{_ en: "No results.", ja: "ヒットしませんでした。"}
"""
html += _(
en: """
Note: documentations must be
enabled to appear in the search.
"""
ja: """
ノート: 検索で表示するには、ドキュメントを
有効 にすることが必要です。
"""
) unless app.isSingleDoc() or app.disabledDocs.isEmpty()
html
templates.sidebarPageLink = (count) ->
"""#{_ en: "Show more", ja: "もっと見る"}\u2026 (#{count})"""
templates.sidebarLabel = (doc, options = {}) ->
label = """"""
templates.sidebarVersionedDoc = (doc, versions, options = {}) ->
html = """#{arrow}#{doc.name}
#{versions}
"""
templates.sidebarDisabled = (options) ->
customize = _ en: "Customize", ja: "カスタマイズ"
"""#{arrow}Disabled (#{options.count}) #{customize}
"""
templates.sidebarDisabledList = (html) ->
"""#{html}
"""
templates.sidebarDisabledVersionedDoc = (doc, versions) ->
"""#{arrow}#{doc.name}#{versions}
"""
templates.docPickerHeader =
en: """Documentation Enable
"""
ja: """ドキュメント Enable
"""
templates.docPickerNote =
en: """
Tip: for faster and better search results, select only the docs you need.
Vote for new documentation
"""
ja: """
Tip: 検索結果を速くよくするには、必要なドキュメントだけ選択してください。
新しいドキュメントを投票する
"""