X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c3af41ec13e26ad2b4cb000291ff989dc1b3686f..1efd8702d1a638414efea3c0f0c6146e97d386f1:/src/catalogue/templates/catalogue/collection_box.html diff --git a/src/catalogue/templates/catalogue/collection_box.html b/src/catalogue/templates/catalogue/collection_box.html index 0e2733862..c32122f32 100644 --- a/src/catalogue/templates/catalogue/collection_box.html +++ b/src/catalogue/templates/catalogue/collection_box.html @@ -1,16 +1,12 @@ {% spaceless %} {% load i18n %} - {% load ssi_include from ssify %} - {% load cache %}

{% trans "Collection" %}: {{ collection }}

{% if collection.description %} {{ collection.description|safe|truncatewords_html:40 }} {% endif %} {% for book in collection.get_books|slice:":5" %} - {% cache 86400 book_mini_box book.pk %} - {% include 'catalogue/book_mini_box.html' %} - {% endcache %} + {{ book.mini_box }} {% endfor %} {% with collection.get_books.count|add:-5 as more %} {% if more > 0 %}