{#
basic/genindex.html
~~~~~~~~~~~~~~~~~~~
Template for an "all-in-one" 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 %}
{{ _('Index') }}
{% for key, dummy in genindexentries -%}
{{ key }}
{%- endfor %}
{%- for key, entries in genindexentries %}
{{ key }}
{%- 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 %}
{% endfor %}
{% endblock %}
{% block sidebarrel %}
{% if split_index %}
{{ _('Index') }}
{% for key, dummy in genindexentries -%}
{% if not loop.last %}| {% endif %}
{%- endfor %}
{% endif %}
{{ super() }}
{% endblock %}