X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/87e084d47c335cd6f0b3e91d614999f55d148044..b86123575745cb5b1ee72018c08e34a187ec25a1:/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 7c092943c..214db8be9 100644 --- a/src/catalogue/templates/catalogue/collection_box.html +++ b/src/catalogue/templates/catalogue/collection_box.html @@ -1,21 +1,18 @@ {% spaceless %} -{% load i18n %} -{% load ssi_include from ssify %} -
-

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

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

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

+

+ {% if collection.description %} + {{ collection.description|safe|truncatewords_html:40 }} {% endif %} - {% for b in obj.get_books|slice:":5" %} - {% ssi_include 'catalogue_book_mini' pk=b.pk %} - {% endfor %} - {% with obj.get_books.count|add:-5 as more %} - {% if more > 0 %} - - {% blocktrans with c=more %}and {{ c }} more{% endblocktrans %} - - {% endif %} - {% endwith %} - -

+

+
+ {% for book in collection.get_books|slice:":5" %} + + {{ book.pretty_title }} + + {% endfor %} +
+
{% endspaceless %}