Some dictionary filtering features.
[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='?'>{% 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='?ltr={{ let }}'>{{ let|upper }}</a>
29     {% endif %}
30 {% endfor %}
31 </p>
32
33 <p>
34 {% trans "By type" %}:
35 {% if fn_type %}
36     <a href='?'>{% trans "all" %}</a>
37 {% else %}
38     <strong>{% trans "all" %}</strong>
39 {% endif %}
40
41 {% for fnt in fn_types %}
42     |
43     {% if fnt == fn_type %}
44         <strong>{{ fnt }}</strong>
45     {% else %}
46         <a href='?type={{ fnt }}'>{{ fnt }}</a>
47     {% endif %}
48 {% endfor %}
49 </p>
50
51
52 <p>
53 {% trans "By qualifier" %}:
54 {% if qualifier %}
55     <a href='?'>{% trans "all" %}</a>
56 {% else %}
57     <strong>{% trans "all" %}</strong>
58 {% endif %}
59
60 {% for qual in qualifiers %}
61     |
62     {% if qual == qualifier %}
63         <strong>{{ qual }}</strong>
64     {% else %}
65         <a href='?qual={{ qual|urlencode }}'>{{ qual }}</a>
66     {% endif %}
67 {% endfor %}
68 </p>
69
70 <p>
71 {% trans "By language" %}:
72 {% if language %}
73     <a href='?'>{% trans "all" %}</a>
74 {% else %}
75     <strong>{% trans "all" %}</strong>
76 {% endif %}
77
78 {% for lang in languages %}
79     |
80     {% if lang == language %}
81         <strong>{{ lang }}</strong>
82     {% else %}
83         <a href='?lang={{ lang }}'>{{ lang }}</a>
84     {% endif %}
85 {% endfor %}
86 </p>
87
88 <hr/>
89
90 <p>
91 {% blocktrans count object_list.count as c %}{{c}} footnote found{% plural %}{{c}} footnotes found{% endblocktrans %}
92 </p>
93
94 {% if object_list.exists %}
95
96 {% autopaginate object_list 100 %}
97 {% paginate %}
98 {% for obj in object_list %}
99     <div class='dictionary-note'>
100         {{ obj.html|safe }}
101         {% for note_source in obj.notesource_set.all %}
102             <div class='dictionary-note-source'>
103                 <a href='{% url "book_text" note_source.book.slug %}#{{ note_source.anchor }}'>{{ note_source.book.pretty_title }}</a>
104                 (<a href='{{ note_source.book.extra_info.about }}'>źródło na Platformie Redakcyjnej</a>)
105             </div>
106         {% endfor %}
107     </div>
108 {% endfor %}
109 {% paginate %}
110
111 {% endif %}
112
113 </div>
114
115 {% endblock %}