{#
basic/genindex-single.html
~~~~~~~~~~~~~~~~~~~~~~~~~~
Template for a "single" page of a split index.
:copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{% macro indexentries(firstname, links, ifsubentries, subitems) %}
{%- if links -%}
{{ firstname|e }}
{%- for ismain, link in links[1:] -%}
, {{ loop.index }}
{%- endfor -%}
{%- else -%}
{{ firstname|e }}
{%- endif -%}
{%- if ifsubentries -%}{%- endif -%}
{% endmacro %}
{%- extends "layout.html" %}
{% set title = _('Index') %}
{% block body %}
{% trans key=key %}Index – {{ key }}{% endtrans %}
{%- for entryname, (links, subitems) in entries -%}
{{ indexentries(entryname, links, false, subitems) }}
{%- if subitems %}
{%- for subentryname, subentrylinks in subitems -%}
{{ indexentries(subentryname, subentrylinks, true) }}
{%- endfor %}
{%- endif -%}
{%- endfor %}
{% endblock %}
{% block sidebarrel %}
{{ _('Index') }}
{% for key, dummy in genindexentries -%}
{%- endfor %}
{{ super() }}
{% endblock %}