{% spaceless %}
{% load i18n %}
<div class="collection-box white-box">
- <h2><a href="{{ collection.get_absolute_url }}">{% trans "Collection" %}: {{ collection }}</a></h2>
- <p>
+ <h2><a href="{{ collection.get_absolute_url }}">{{ collection }}</a></h2>
+ <div class="description">
{% if collection.description %}
{{ collection.description|safe|truncatewords_html:40 }}
{% endif %}
- </p>
+ </div>
<div class="covers">
- {% for book in collection.get_books|slice:":5" %}
+ {% for book in collection.get_books|slice:":6" %}
<a href="{{ book.get_absolute_url }}">
<img src="{{ book.cover_thumb.url }}" alt="{{ book.pretty_title }}" title="{{ book.pretty_title }}">
</a>