5
Template for an "all-in-one" index.
7
:copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
8
:license: BSD, see LICENSE for details.
10
{% extends "layout.html" %}
11
{% set title = _('Index') %}
14
<h1 id="index">{{ _('Index') }}</h1>
16
<div class="genindex-jumpbox">
17
{% for key, dummy in genindexentries -%}
18
<a href="#{{ key }}"><strong>{{ key }}</strong></a> {% if not loop.last %}| {% endif %}
22
{%- for key, entries in genindexentries %}
23
<h2 id="{{ key }}">{{ key }}</h2>
24
<table width="100%" class="indextable genindextable"><tr>
25
{%- for column in entries|slice(2) if column %}
26
<td width="33%" valign="top"><dl>
27
{%- for entryname, (links, subitems) in column %}
28
<dt>{% if links %}<a href="{{ links[0] }}">{{ entryname|e }}</a>
29
{%- for link in links[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor %}
30
{%- else %}{{ entryname|e }}{% endif %}</dt>
33
{%- for subentryname, subentrylinks in subitems %}
34
<dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
35
{%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
48
{% block sidebarrel %}
50
<h4>{{ _('Index') }}</h4>
51
<p>{% for key, dummy in genindexentries -%}
52
<a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
53
{% if not loop.last %}| {% endif %}
56
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>