More work on new HTML reader.
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_mini_box.html
1 {% load thumbnail %}
2 <div class="book-mini-box">
3     <div class="book-mini-box-inner">
4     {% if with_link %}
5     <a href="{{ book.get_absolute_url }}">
6     {% endif %}
7         {% if book.cover %}
8             <img src="
9                 {% thumbnail book.cover "139x193" as thumb %}
10                     {{ thumb.url }}
11                 {% empty %}
12                     {{ book.cover.url }}
13                 {% endthumbnail %}
14             " alt="{{ author_str }} – {{ book.title }}" class="cover" />
15         {% endif %}
16         {% if show_lang %}
17             <span class="language" title="{{ book.language_name }}">{{ book.language_code }}</span>
18         {% endif %}
19         <div class="desc">
20             <span class="mono author">{{ author_str }}</span>
21             <span class="title">{{ book.title }}</span>
22         </div>
23     {% if with_link %}
24     </a>
25     {% endif %}
26     </div>
27 </div>
28
29