X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1efd8702d1a638414efea3c0f0c6146e97d386f1..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 c32122f32..214db8be9 100644 --- a/src/catalogue/templates/catalogue/collection_box.html +++ b/src/catalogue/templates/catalogue/collection_box.html @@ -2,18 +2,17 @@ {% load i18n %}

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

+

{% if collection.description %} {{ collection.description|safe|truncatewords_html:40 }} {% endif %} - {% for book in collection.get_books|slice:":5" %} - {{ book.mini_box }} - {% 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:":5" %} + + {{ book.pretty_title }} - {% endif %} - {% endwith %} + {% endfor %} +
{% endspaceless %}