buildframework/helium/external/python/lib/common/Sphinx-0.5.1-py2.5.egg/sphinx/templates/genindex.html
author wbernard
Wed, 23 Dec 2009 19:29:07 +0200
changeset 179 d8ac696cc51f
permissions -rw-r--r--
helium_7.0-r14027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     1
{% extends "layout.html" %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     2
{% set title = _('Index') %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     3
{% block body %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     4
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     5
   <h1 id="index">{{ _('Index') }}</h1>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     6
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     7
   {% for key, dummy in genindexentries -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     8
   <a href="#{{ key }}"><strong>{{ key }}</strong></a> {% if not loop.last %}| {% endif %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     9
   {%- endfor %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    10
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    11
   <hr />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    12
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    13
   {% for key, entries in genindexentries %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    14
<h2 id="{{ key }}">{{ key }}</h2>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    15
<table width="100%" class="indextable"><tr><td width="33%" valign="top">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    16
<dl>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    17
{%- set breakat = genindexcounts[loop.index0] // 2 %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    18
{%- set numcols = 1 %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    19
{%- set numitems = 0 %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    20
{% for entryname, (links, subitems) in entries %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    21
<dt>{%- if links -%}<a href="{{ links[0] }}">{{ entryname|e }}</a>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    22
  {%- for link in links[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    23
  {%- else -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    24
{{ entryname|e }}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    25
  {%- endif -%}</dt>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    26
  {%- if subitems %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    27
  <dd><dl>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    28
    {%- for subentryname, subentrylinks in subitems %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    29
    <dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    30
    {%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    31
    </dt>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    32
    {%- endfor %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    33
  </dl></dd>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    34
  {%- endif -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    35
{%- set numitems = numitems + 1 + (subitems|length) -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    36
{%- if numcols < 2 and numitems > breakat -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    37
{%- set numcols = numcols+1 -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    38
</dl></td><td width="33%" valign="top"><dl>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    39
{%- endif -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    40
{%- endfor %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    41
</dl></td></tr></table>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    42
{% endfor %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    43
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    44
{% endblock %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    45
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    46
{% block sidebarrel %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    47
{% if split_index %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    48
   <h4>{{ _('Index') }}</h4>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    49
   <p>{% for key, dummy in genindexentries -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    50
   <a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    51
     {% if not loop.last %}| {% endif %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    52
   {%- endfor %}</p>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    53
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    54
   <p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    55
{% endif %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    56
   {{ super() }}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    57
{% endblock %}