translation update
[wolnelektury.git] / src / catalogue / templates / catalogue / collection_box.html
1 {% spaceless %}
2 {% load i18n %}
3 {% load ssi_include from ssify %}
4 <div class="collection-box white-box">
5     <h2><a href="{{ obj.get_absolute_url }}">{% trans "Collection" %}: {{ obj }}</a></h2>
6     {% if obj.description %}
7     {{ obj.description|safe|truncatewords_html:40 }}
8     {% endif %}
9     {% for b in obj.get_books|slice:":5" %}
10         {% ssi_include 'catalogue_book_mini' pk=b.pk %}
11     {% endfor %}
12     {% with obj.get_books.count|add:-5 as more %}
13         {% if more > 0 %}
14             <a href="{{ obj.get_absolute_url }}">
15                 {% blocktrans count c=more %}and one more{% plural %}and {{ c }} more{% endblocktrans %}
16             </a>
17         {% endif %}
18     {% endwith %}
19 </div>
20 {% endspaceless %}