~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/sphinxdoc/genindex.html

  • Committer: Holger Rapp
  • Date: 2010-01-01 21:35:23 UTC
  • mto: (173.3.2 widelands)
  • mto: This revision was merged to the branch mainline in revision 176.
  • Revision ID: rapp@mrt.uka.de-20100101213523-53rcapbemm69ep6u
Made the site compatible to django 1.1 and all the various packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends 'sphinxdoc/documentation.html' %}
2
 
 
3
 
{% block doc_body %}
4
 
    <h1>General Index</h1>
5
 
    <p class="indexletters">
6
 
    {% for letter, _ in doc.genindexentries %}
7
 
        <a href="#{{ letter }}">{{ letter }}</a> {% if not forloop.last %} •{% endif %}
8
 
    {% endfor %}
9
 
    </p>
10
 
 
11
 
    {% for letter, entries in doc.genindexentries %}
12
 
    <br />    
13
 
    <h2 id="{{ letter }}">{{ letter }}</h2>
14
 
    <dl class="index">
15
 
        {% for name, contents in entries %}
16
 
        <dt>
17
 
          {# contents.0 is a list of links for the item #}
18
 
            {% if contents.0 %}
19
 
            <a href="{{ contents.0.0 }}">{{ name }}</a>
20
 
            {% else %}
21
 
            {{ name }}
22
 
            {% endif %}
23
 
        </dt>
24
 
        {# contents.1 is a list of subitems #}
25
 
            {% if contents.1 %}
26
 
                {% for subname, sublinks in contents.1 %}
27
 
        <dd>
28
 
            <a href="{{ sublinks.0 }}">{{ subname }}</a>
29
 
                    {% for link in sublinks|slice:"1:" %}, <a href="{{ link }}">[Link]</a>{% endfor %}
30
 
        </dd>
31
 
                {% endfor %}
32
 
            {% endif %}
33
 
        {% endfor %}
34
 
    </dl>
35
 
    {% endfor %}
36
 
    <br />
37
 
{% endblock doc_body %}
38
 
{% block doc_toc %}{% endblock %}