]> git.sesse.net Git - casparcg/blob - source/_themes/default/basic/genindex-single.html
docs: Updated.
[casparcg] / source / _themes / default / basic / genindex-single.html
1 {#
2     basic/genindex-single.html
3     ~~~~~~~~~~~~~~~~~~~~~~~~~~
4
5     Template for a "single" page of a split index.
6
7     :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
8     :license: BSD, see LICENSE for details.
9 #}
10 {% macro indexentries(firstname, links) %}
11   <dt>
12   {%- if links -%}
13     <a href="{{ links[0][1] }}">
14     {%- if links[0][0] %}<strong>{% endif -%}
15     {{ firstname|e }}
16     {%- if links[0][0] %}</strong>{% endif -%}
17     </a>
18
19     {%- for ismain, link in links[1:] -%}
20       , <a href="{{ link }}">{% if ismain %}<strong>{% endif -%}
21       [{{ loop.index }}]
22       {%- if ismain %}</strong>{% endif -%}
23       </a>
24     {%- endfor %}
25   {%- else %}
26     {{ firstname|e }}
27   {%- endif %}
28   </dt>
29 {% endmacro %}
30
31 {% extends "layout.html" %}
32 {% set title = _('Index') %}
33 {% block body %}
34
35 <h1 id="index">{% trans key=key %}Index &ndash; {{ key }}{% endtrans %}</h1>
36
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) }}
42       {%- if subitems %}
43       <dd><dl>
44       {%- for subentryname, subentrylinks in subitems %}
45         {{ indexentries(subentryname, subentrylinks) }}
46       {%- endfor %}
47       </dl></dd>
48       {%- endif -%}
49     {%- endfor %}
50   </dl></td>
51   {%- endfor %}
52 </tr></table>
53
54 {% endblock %}
55
56 {% block sidebarrel %}
57    <h4>Index</h4>
58    <p>{% for key, dummy in genindexentries -%}
59    <a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
60      {% if not loop.last %}| {% endif %}
61    {%- endfor %}</p>
62
63    <p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
64    {{ super() }}
65 {% endblock %}