fix
[wolnelektury.git] / src / catalogue / templates / catalogue / collection_box.html
1 {% spaceless %}
2   {% load i18n %}
3   <div class="collection-box white-box">
4     <h2><a href="{{ collection.get_absolute_url }}">{% trans "Collection" %}: {{ collection }}</a></h2>
5     <div class="description">
6     {% if collection.description %}
7       {{ collection.description|safe|truncatewords_html:40 }}
8     {% endif %}
9     </div>
10     <div class="covers">
11       {% for book in collection.get_books|slice:":5" %}
12         <a href="{{ book.get_absolute_url }}">
13           <img src="{{ book.cover_thumb.url }}" alt="{{ book.pretty_title }}" title="{{ book.pretty_title }}">
14         </a>
15       {% endfor %}
16     </div>
17   </div>
18 {% endspaceless %}