Added caching of latest blog posts fetched from wolnepodreczniki blog.
[wolnelektury.git] / templates / catalogue / tagged_book_list.html
index 35dcf13..68253af 100644 (file)
@@ -1,5 +1,5 @@
 {% extends "base.html" %}
-{% load catalogue pagination_tags %}
+{% load catalogue_tags pagination_tags %}
 
 {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %}
 
 
 {% block body %}
     <h1>{% title_from_tags tags %}</h1>
-    <form action="." method="get" accept-charset="utf-8" id="search-form">
-        <ol>
-            {% for tag in tags %}
-            <li class="category"><a href="{% catalogue_url tag %}">{{ tag }}</a> | <a href="{% catalogue_url tags -tag %}">x</a></li>
-            {% endfor %}
-            <li>{{ form.q }} <input type="submit" value="Szukaj"/></li>
-        </ol>
-    </form>
+    {% breadcrumbs tags %}
+    {# <form action="." method="get" accept-charset="utf-8" id="search-form"> #}
+    {#     <ol> #}
+    {#         {% for tag in tags %} #}
+    {#         <li class="category"><a href="{% catalogue_url tag %}">{{ tag }}</a> | <a href="{% catalogue_url tags -tag %}">x</a></li> #}
+    {#         {% endfor %} #}
+    {#         <li>{{ form.q }} <input type="submit" value="Szukaj"/></li> #}
+    {#     </ol> #}
+    {# </form> #}
     
-    {% autopaginate books 10 %}
+    {% autopaginate object_list 10 %}
     <div id="books-list">
         {% with tags|last as last_tag %}
         {% if last_tag.has_description %}
@@ -74,7 +75,7 @@
         {% endif %}
         {% endwith %}
         <ol>
-        {% for book in books %}
+        {% for book in object_list %}
             <li>{% include "catalogue/_book.html" %}</li>
         {% endfor %}
         </ol>