buildframework/helium/external/python/lib/common/Sphinx-0.5.1-py2.5.egg/sphinx/templates/genindex-single.html
author lorewang
Wed, 01 Dec 2010 16:05:36 +0800
changeset 715 e0739b8406dd
parent 179 d8ac696cc51f
permissions -rw-r--r--
Specify extenal tool with path
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">{% trans key=key %}Index &ndash; {{ key }}{% endtrans %}</h1>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     6
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     7
<table width="100%" class="indextable"><tr><td width="33%" valign="top">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     8
<dl>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     9
{%- set breakat = count // 2 %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    10
{%- set numcols = 1 %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    11
{%- set numitems = 0 %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    12
{% for entryname, (links, subitems) in entries %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    13
<dt>{%- if links -%}<a href="{{ links[0] }}">{{ entryname|e }}</a>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    14
  {%- for link in links[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    15
  {%- else -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    16
{{ entryname|e }}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    17
  {%- endif -%}</dt>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    18
  {%- if subitems %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    19
  <dd><dl>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    20
    {%- for subentryname, subentrylinks in subitems %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    21
    <dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    22
    {%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    23
    </dt>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    24
    {%- endfor %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    25
  </dl></dd>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    26
  {%- endif -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    27
{%- set numitems = numitems + 1 + (subitems|length) -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    28
{%- if numcols < 2 and numitems > breakat -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    29
{%- set numcols = numcols+1 -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    30
</dl></td><td width="33%" valign="top"><dl>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    31
{%- endif -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    32
{%- endfor %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    33
</dl></td></tr></table>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    34
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    35
{% endblock %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    36
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    37
{% block sidebarrel %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    38
   <h4>Index</h4>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    39
   <p>{% for key, dummy in genindexentries -%}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    40
   <a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    41
     {% if not loop.last %}| {% endif %}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    42
   {%- endfor %}</p>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    43
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    44
   <p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    45
   {{ super() }}
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    46
{% endblock %}