2 basic/genindex-single.html
3 ~~~~~~~~~~~~~~~~~~~~~~~~~~
5 Template for a "single" page of a split index.
7 :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
8 :license: BSD, see LICENSE for details.
10 {% macro indexentries(firstname, links) %}
13 <a href="{{ links[0][1] }}">
14 {%- if links[0][0] %}<strong>{% endif -%}
16 {%- if links[0][0] %}</strong>{% endif -%}
19 {%- for ismain, link in links[1:] -%}
20 , <a href="{{ link }}">{% if ismain %}<strong>{% endif -%}
22 {%- if ismain %}</strong>{% endif -%}
31 {% extends "layout.html" %}
32 {% set title = _('Index') %}
35 <h1 id="index">{% trans key=key %}Index – {{ key }}{% endtrans %}</h1>
37 <table style="width: 100%" class="indextable"><tr>
38 {%- for column in entries|slice(2) if column %}
39 <td style="width: 33%" valign="top"><dl>
40 {%- for entryname, (links, subitems) in column %}
41 {{ indexentries(entryname, links) }}
44 {%- for subentryname, subentrylinks in subitems %}
45 {{ indexentries(subentryname, subentrylinks) }}
56 {% block sidebarrel %}
58 <p>{% for key, dummy in genindexentries -%}
59 <a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
60 {% if not loop.last %}| {% endif %}
63 <p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>