X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3c0e373447323b5e33b273859e790a2054771afa..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 ac59fbe86..c32122f32 100644 --- a/src/catalogue/templates/catalogue/collection_box.html +++ b/src/catalogue/templates/catalogue/collection_box.html @@ -1,21 +1,16 @@ {% spaceless %} {% load i18n %} - {% load ssi_include from ssify %} - {% load cache %}
-

{% trans "Collection" %}: {{ obj }}

- {% if obj.description %} - {{ obj.description|safe|truncatewords_html:40 }} +

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

+ {% if collection.description %} + {{ collection.description|safe|truncatewords_html:40 }} {% endif %} - {% for book in obj.get_books|slice:":5" %} - {% cache 86400 book_mini_box book.pk %} - {% include 'catalogue/book_mini_box.html' %} - {% endcache %} - {#% ssi_include 'catalogue_book_mini' pk=book.pk %#} + {% for book in collection.get_books|slice:":5" %} + {{ book.mini_box }} {% endfor %} - {% with obj.get_books.count|add:-5 as more %} + {% with collection.get_books.count|add:-5 as more %} {% if more > 0 %} - + {% blocktrans count c=more %}and one more{% plural %}and {{ c }} more{% endblocktrans %} {% endif %}