{% extends "base.html" %} {% load i18n %} {% block content %}
{% if index_entries %}

{% trans "Index" %}

{% trans "Letters" %}

{% for group_label, grouped_entries in index_entries %}

{{ group_label }}

{% for grouped_entry in grouped_entries %} {% with grouped_entry.0 as entry %} {% with grouped_entry.1 as entry_info %} {% with grouped_entry.2 as entry_domain %}
{% if entry_info.0 %} {% for entry_link in entry_info.0 %}
{% if entry_domain %}[{{ entry_domain }}]{% endif %} {% ifequal forloop.counter 1 %} {{ entry }} {% else %} [{{ forloop.counter0 }}] {% endifequal %}
{% endfor %} {% else %} {% if entry_domain %}[{{ entry_domain }}]{% endif %} {{ entry }}
{% for subentry, subentry_links in entry_info.1 %}
{% for subentry_link in subentry_links %} {% ifequal forloop.counter 1 %} {{ subentry }} {% else %} [{{ forloop.counter0 }}] {% endifequal %} {% endfor %}
{% endfor %}
{% endif %}
{% endwith %} {% endwith %} {% endwith %} {% endfor %} {% endfor %}
{% else %}{# index_entries #} {% trans "This documents has no index." %} {% endif %}{# index_entries #}
{% endblock content %}