{% extends "layout.html" %}
{% comment %}
    basic/genindex.html
    ~~~~~~~~~~~~~~~~~~~

    Template for an "all-in-one" index.

    :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
{% endcomment %}
{% block title %}Index{% endblock %}
{% block body %}

   <h1 id="index">Index</h1>

   <div class="genindex-jumpbox">
   {% for key, dummy in genindexentries %}
   <a href="#{{ key }}"><strong>{{ key }}</strong></a> {% if not loop.last %}| {% endif %}
   {% endfor %}
   </div>

   {% for key, entries in genindexentries %}
<h2 id="{{key}}">{{key}}</h2>
<table width="100%" class="indextable genindextable"><tr>
  {% for column in entries|slice:":2" %}
  <td width="33%" valign="top"><dl>
  {% for entryname, (links, subitems) in column %}
    <dt>{% if links %}<a href="{{ links.0 }}">{{entryname}}</a>
      {% for link in links|slice:"1:" %}, <a href="{{link}}">[{{loop.index}}]</a>{% endfor %}
      {% else %}{{ entryname }}{% endif %}</dt>
    {% if subitems %}
    <dd><dl>
    {% for subentryname, subentrylinks in subitems %}
      <dt><a href="{{ subentrylinks.0 }}">{{ subentryname }}</a>
      {% for link in subentrylinks|slice:"1:" %}, <a href="{{ link }}">[{{loop.index}}]</a>{% endfor %}
      </dt>
    {% endfor %}
  </dl></dd>
  {% endif %}
{% endfor %}
</dl></td>
{% endfor %}
</tr></table>
{% endfor %}

{% endblock %}

{% block sidebarrel %}
{% if split_index %}
   <h4>Index</h4>
   <p>{% for key, dummy in genindexentries %}
   <a href="genindex-{{key}}"><strong>{{key}}</strong></a>
     {% if not loop.last %}| {% endif %}
   {% endfor %}</p>

   <p><a href="genindex-all"><strong>Full index on one page</strong></a></p>
{% endif %}
   {{ block.super }}
{% endblock %}
