diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-10-21 15:12:34 -0200 |
---|---|---|
committer | Luciano Miguel Wolf <luciano.wolf@indt.org.br> | 2009-10-21 16:26:44 -0300 |
commit | d1af6dc97bbf18577c7a3c4e7a505d1596473cd9 (patch) | |
tree | c3461171ce9756700b1ebc1414643ee05cc5efb0 /doc/_themes/pysidedocs/genindex-single.html | |
parent | 17a82a3123c8f0d21aa4e32e295f729d862e65f4 (diff) |
Added pysidedocs theme to the generatorrunner documentation.
Diffstat (limited to 'doc/_themes/pysidedocs/genindex-single.html')
-rw-r--r-- | doc/_themes/pysidedocs/genindex-single.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/_themes/pysidedocs/genindex-single.html b/doc/_themes/pysidedocs/genindex-single.html new file mode 100644 index 000000000..9aaaeb0ca --- /dev/null +++ b/doc/_themes/pysidedocs/genindex-single.html @@ -0,0 +1,46 @@ +{% extends "layout.html" %} +{% set title = _('Index') %} +{% block body %} + + <h1 id="index">{% trans key=key %}Index – {{ key }}{% endtrans %}</h1> + +<table width="100%" class="indextable"><tr><td width="33%" valign="top"> +<dl> +{%- set breakat = count // 2 %} +{%- set numcols = 1 %} +{%- set numitems = 0 %} +{% for entryname, (links, subitems) in entries %} +<dt>{%- if links -%}<a href="{{ links[0] }}">{{ entryname|e }}</a> + {%- for link in links[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%} + {%- else -%} +{{ entryname|e }} + {%- endif -%}</dt> + {%- if subitems %} + <dd><dl> + {%- for subentryname, subentrylinks in subitems %} + <dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a> + {%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%} + </dt> + {%- endfor %} + </dl></dd> + {%- endif -%} +{%- set numitems = numitems + 1 + (subitems|length) -%} +{%- if numcols < 2 and numitems > breakat -%} +{%- set numcols = numcols+1 -%} +</dl></td><td width="33%" valign="top"><dl> +{%- endif -%} +{%- endfor %} +</dl></td></tr></table> + +{% endblock %} + +{% block sidebarrel %} + <h4>Index</h4> + <p>{% for key, dummy in genindexentries -%} + <a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a> + {% if not loop.last %}| {% endif %} + {%- endfor %}</p> + + <p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p> + {{ super() }} +{% endblock %} |