moved stats to own app, add template tags to it,
[wolnelektury.git] / apps / dictionary / templates / dictionary / note_list.html
1 {% extends "base.html" %}
2 {% load i18n pagination_tags %}
3 {% load catalogue_tags %}
4
5 {% block body %}
6     <h1>Przypisy</h1>
7     {% search_form %}
8
9
10 <p>
11 {% trans "By first letter" %}:
12 {% if letter %}
13     <a href='{% url dictionary_notes %}'>{% trans "all" %}</a>
14 {% else %}
15     <strong>{% trans "all" %}</strong>
16 {% endif %}
17
18 {% for let in letters %}
19     |
20     {% if let == letter %}
21         <strong>{{ let|upper }}</strong>
22     {% else %}
23         <a href='{% url dictionary_notes let %}'>{{ let|upper }}</a>
24     {% endif %}
25 {% endfor %}
26 </p>
27 <hr/>
28
29 {% if object_list %}
30
31 {% autopaginate object_list 100 %}
32 {% paginate %}
33 {% for obj in object_list %}
34     <div class='dictionary-note'>
35     {{ obj.html|safe }}
36     <div class='dictionary-note-source'>
37     (<a href='{% url book_text obj.book.slug %}#{{ obj.anchor }}'>{{ obj.book.pretty_title }}</a>)
38     </div>
39     </div>
40 {% endfor %}
41 {% paginate %}
42
43 {% endif %}
44
45 {% endblock %}