footnotes dictionary fixes
[wolnelektury.git] / apps / dictionary / templates / dictionary / note_list.html
index 7f3b436..e0b10f3 100755 (executable)
@@ -1,8 +1,42 @@
 {% extends "base.html" %}
-{% load pagination_tags %}
+{% load i18n pagination_tags %}
+{% load catalogue_tags %}
+
+
+{% block bodyid %}footnotes{% endblock %}
+
+{% block title %}{% trans "Footnotes on WolneLektury.pl" %}{% endblock %}
+
 
 {% block body %}
+    <h1>{% trans "Footnotes" %}</h1>
+    {% search_form %}
+
 
+<p>
+{% trans "By first letter" %}:
+{% if letter %}
+    <a href='{% url dictionary_notes %}'>{% trans "all" %}</a>
+{% else %}
+    <strong>{% trans "all" %}</strong>
+{% endif %}
+
+{% for let in letters %}
+    |
+    {% if let == letter %}
+        <strong>{{ let|upper }}</strong>
+    {% else %}
+        <a href='{% url dictionary_notes let %}'>{{ let|upper }}</a>
+    {% endif %}
+{% endfor %}
+</p>
+<hr/>
+
+<p>
+{% blocktrans count object_list.count as c %}{{c}} footnote found{% plural %}{{c}} footnotes found{% endblocktrans %}
+</p>
+
+{% if object_list %}
 
 {% autopaginate object_list 100 %}
 {% paginate %}
@@ -16,4 +50,6 @@
 {% endfor %}
 {% paginate %}
 
+{% endif %}
+
 {% endblock %}