reformat templates
[wolnelektury.git] / src / dictionary / templates / dictionary / note_list.html
1 {% extends "base/base.html" %}
2 {% load i18n pagination_tags %}
3 {% load set_get from set_get %}
4
5
6 {% block bodyid %}footnotes{% endblock %}
7
8 {% block titleextra %}{% trans "Footnotes" %}{% endblock %}
9
10
11 {% block body %}
12   <h1>{% trans "Footnotes" %}</h1>
13
14   <div class="normal-text">
15     <p>
16       {% trans "By first letter" %}:
17       {% if letter %}
18         <a href='?{% set_get "page" "ltr" %}'>{% 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='?{% set_get "page" 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='?{% set_get "page" "type" %}'>{% trans "all" %}</a>
37       {% else %}
38         <strong>{% trans "all" %}</strong>
39       {% endif %}
40
41       {% for fnt, fnt_name in fn_types %}
42         |
43         {% if fnt == fn_type %}
44           <strong>{{ fnt_name }}</strong>
45         {% else %}
46           <a href='?{% set_get "page" type=fnt %}'>{{ fnt_name }}</a>
47         {% endif %}
48       {% endfor %}
49     </p>
50
51
52     <p>
53       {% trans "By qualifier" %}:
54       {% if qualifier %}
55         <a href='?{% set_get "page" "qual" %}'>{% 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='?{% set_get "page" qual=qual.qualifier %}'>{{ qual }}</a>
66         {% endif %}
67       {% endfor %}
68     </p>
69
70     <p>
71       {% trans "By language" %}:
72       {% if language %}
73         <a href='?{% set_get "page" "lang" %}'>{% trans "all" %}</a>
74       {% else %}
75         <strong>{% trans "all" %}</strong>
76       {% endif %}
77
78       {% for lang, lang_name in languages %}
79         |
80         {% if lang == language %}
81           <strong>{{ lang_name }}</strong>
82         {% else %}
83           <a href='?{% set_get "page" lang=lang %}'>{{ lang_name }}</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       {% autopaginate object_list 100 %}
96       {% paginate %}
97       {% for obj in object_list %}
98         <div class='dictionary-note'>
99           {{ obj.html|safe }}
100           {% for note_source in obj.notesource_set.all %}
101             <div class='dictionary-note-source'>
102               <a href='{% url "book_text" note_source.book.slug %}#{{ note_source.anchor }}'>{{ note_source.book.pretty_title }}</a>
103               (<a href='{{ note_source.book.extra_info.about }}'>źródło na Platformie Redakcyjnej</a>)
104             </div>
105           {% endfor %}
106         </div>
107       {% endfor %}
108       {% paginate %}
109     {% endif %}
110   </div>
111 {% endblock %}