bundled/jinja2/docs/_templates/genindex.html @ f841259cc87e
Move the individual line comment forms into comments.js. This *massively* improves performance on large diffs. For example, the review page for the changeset where I added CherryPy as a bundled app was 38.7mb before this changeset. With this change it is now 13.2mb.
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Sat, 27 Mar 2010 13:03:00 -0400 |
| parents | 256716e3a3d7 |
| children | (none) |
{% extends "layout.html" %} {% set title = 'Index' %} {% block body %} <h1 id="index">Index</h1> {% for key, dummy in genindexentries -%} <a href="#{{ key }}"><strong>{{ key }}</strong></a> {% if not loop.last %}| {% endif %} {%- endfor %} <hr> {% for key, entries in genindexentries %} <h2 id="{{ key }}">{{ key }}</h2> <table class="indextable"><tr> {%- for column in entries|slice(2) if column %} <td><dl> {%- for entryname, (links, subitems) in column %} <dt>{% if links %}<a href="{{ links[0] }}">{{ entryname|e }}</a> {% for link in links[1:] %}, <a href="{{ link }}">[Link]</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 }}">[Link]</a>{% endfor -%} </dt> {%- endfor %} </dl></dd> {%- endif -%} {%- endfor %} </dl></td> {%- endfor %} </tr></table> {% endfor %} {% endblock %}