1 {% load sorl_thumbnail %}
3 <article class="l-books__item" data-pop="-{{ book.popularity.count }}">
4 <figure class="l-books__item__img" style="height:240px">
5 <a href="{{ book.get_absolute_url }}">
6 {% if book.is_picture %}
7 {% if book.image_file %}
8 {% thumbnail book.image_file "170x240" crop="center" as im %}
9 <img style="float: left; margin:{{ im|margin:"170x240" }}" src="{{ im.url }}" width="{{ im.x }}" height="{{ im.y }}" />
13 {% if book.cover_clean %}
14 <img src="{{ book.cover_clean.url }}" alt="{{ book.title }}">
19 <div class="l-books__item__actions">
21 <span class="icon icon-book-alt" title="książka"></span>
24 <span class="icon icon-audio" title="audiobook"></span>
26 {% if book.is_picture %}
27 <span class="icon icon-picture" title="obraz"></span>
29 <!-- a href="#" class="icon icon-like"></a -->
32 {% for author in book.authors %}
33 <a href="{{ author.get_absolute_url }}">{{ author }}</a>{% if not forloop.last %}, {% endif %}
36 <h2><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h2>