X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c3af41ec13e26ad2b4cb000291ff989dc1b3686f..a79b274856788fd355c87980186d76ff5a7f9cd6:/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..ec79ca617 100644 --- a/src/catalogue/templates/catalogue/collection_box.html +++ b/src/catalogue/templates/catalogue/collection_box.html @@ -1,23 +1,19 @@ {% spaceless %} {% load i18n %} - {% load ssi_include from ssify %} - {% load cache %} + {% load thumbnail %}
-

{% trans "Collection" %}: {{ 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 %} - {% endfor %} - {% with collection.get_books.count|add:-5 as more %} - {% if more > 0 %} - - {% blocktrans count c=more %}and one more{% plural %}and {{ c }} more{% endblocktrans %} +
+
+ {% for book in collection.get_books|slice:":6" %} + + {{ book.pretty_title }} - {% endif %} - {% endwith %} + {% endfor %} +
{% endspaceless %}