Fix: typo
[wolnelektury.git] / apps / dictionary / templates / dictionary / note_list.html
index 6eac93a..5bf9e3f 100755 (executable)
@@ -15,7 +15,7 @@
 <p>
 {% trans "By first letter" %}:
 {% if letter %}
 <p>
 {% trans "By first letter" %}:
 {% if letter %}
-    <a href='{% url dictionary_notes %}'>{% trans "all" %}</a>
+    <a href='{% url "dictionary_notes" %}'>{% trans "all" %}</a>
 {% else %}
     <strong>{% trans "all" %}</strong>
 {% endif %}
 {% else %}
     <strong>{% trans "all" %}</strong>
 {% endif %}
@@ -25,7 +25,7 @@
     {% if let == letter %}
         <strong>{{ let|upper }}</strong>
     {% else %}
     {% if let == letter %}
         <strong>{{ let|upper }}</strong>
     {% else %}
-        <a href='{% url dictionary_notes let %}'>{{ let|upper }}</a>
+        <a href='{% url "dictionary_notes" let %}'>{{ let|upper }}</a>
     {% endif %}
 {% endfor %}
 </p>
     {% endif %}
 {% endfor %}
 </p>
@@ -35,7 +35,7 @@
 {% blocktrans count object_list.count as c %}{{c}} footnote found{% plural %}{{c}} footnotes found{% endblocktrans %}
 </p>
 
 {% blocktrans count object_list.count as c %}{{c}} footnote found{% plural %}{{c}} footnotes found{% endblocktrans %}
 </p>
 
-{% if object_list %}
+{% if object_list.exists %}
 
 {% autopaginate object_list 100 %}
 {% paginate %}
 
 {% autopaginate object_list 100 %}
 {% paginate %}
@@ -43,7 +43,7 @@
     <div class='dictionary-note'>
     {{ obj.html|safe }}
     <div class='dictionary-note-source'>
     <div class='dictionary-note'>
     {{ obj.html|safe }}
     <div class='dictionary-note-source'>
-    (<a href='{% url book_text obj.book.slug %}#{{ obj.anchor }}'>{{ obj.book.pretty_title }}</a>)
+    (<a href='{% url "book_text" obj.book.slug %}#{{ obj.anchor }}'>{{ obj.book.pretty_title }}</a>)
     </div>
     </div>
 {% endfor %}
     </div>
     </div>
 {% endfor %}