Upgrade to Django 1.5.
[wolnelektury.git] / apps / dictionary / templates / dictionary / note_list.html
1 {% extends "base.html" %}
2 {% load i18n pagination_tags %}
3
4
5 {% block bodyid %}footnotes{% endblock %}
6
7 {% block titleextra %}{% trans "Footnotes" %}{% endblock %}
8
9
10 {% block body %}
11     <h1>{% trans "Footnotes" %}</h1>
12
13 <div class="normal-text">
14
15 <p>
16 {% trans "By first letter" %}:
17 {% if letter %}
18     <a href='{% url "dictionary_notes" %}'>{% trans "all" %}</a>
19 {% else %}
20     <strong>{% trans "all" %}</strong>
21 {% endif %}
22
23 {% for let in letters %}
24     |
25     {% if let == letter %}
26         <strong>{{ let|upper }}</strong>
27     {% else %}
28         <a href='{% url "dictionary_notes" let %}'>{{ let|upper }}</a>
29     {% endif %}
30 {% endfor %}
31 </p>
32 <hr/>
33
34 <p>
35 {% blocktrans count object_list.count as c %}{{c}} footnote found{% plural %}{{c}} footnotes found{% endblocktrans %}
36 </p>
37
38 {% if object_list %}
39
40 {% autopaginate object_list 100 %}
41 {% paginate %}
42 {% for obj in object_list %}
43     <div class='dictionary-note'>
44     {{ obj.html|safe }}
45     <div class='dictionary-note-source'>
46     (<a href='{% url "book_text" obj.book.slug %}#{{ obj.anchor }}'>{{ obj.book.pretty_title }}</a>)
47     </div>
48     </div>
49 {% endfor %}
50 {% paginate %}
51
52 {% endif %}
53
54 </div>
55
56 {% endblock %}