Layout fixes, cover update for files.
[wolnelektury.git] / src / catalogue / templates / catalogue / 2022 / fragment_box.html
1 <article class="l-books__item">
2   <figure class="l-books__item__img">
3     <a href="{{ fragment.get_absolute_url }}">
4       {% if fragment.book.cover_clean %}
5         <img src="{{ fragment.book.cover_clean.url }}" alt="{{ fragment.book.title }}">
6       {% endif %}
7     </a>
8     <div class="l-books__item__actions">
9       <a href="{{ fragment.book.get_absolute_url }}" class="icon icon-book-alt"></a>
10       {% if fragment.book.has_mp3_file %}
11         <a href="{{ fragment.book.get_absolute_url }}" class="icon icon-audio"></a>
12       {% endif %}
13     </div>
14   </figure>
15   <div class="l-books__item__content s">
16     <h3>
17       {% for author in fragment.book.authors %}
18         <a href="{{ author.get_absolute_url }}">{{ author }}</a>{% if not forloop.last %}, {% endif %}
19       {% endfor %}
20     </h3>
21     <h2><a href="{{ fragment.book.get_absolute_url }}">{{ fragment.book.title }}</a></h2>
22     <div class="fragment-text">
23       {{ fragment.short_text|safe }}
24     </div>
25     <a href="{{ fragment.get_absolute_url }}">Czytaj wiÄ™cej</a>
26   </div>
27 </article>