Merge branch 'reflow'
[wolnelektury.git] / src / picture / templates / picture / picture_mini_box.html
1 {% spaceless %}
2
3 {% load thumbnail %}
4 <div class="book-mini-box">
5     <div class="book-mini-box-inner">
6     {% if with_link %}
7     <a href="{{ picture.get_absolute_url }}">
8     {% endif %}
9         {% if picture.image_file %}
10             <img src="{% thumbnail picture.image_file "139x193" crop="center" as thumb %}{{ thumb.url }}{% empty %}{{ picture.image_file.url }}{% endthumbnail %}" alt="{{ author_str }} – {{ picture.title }}" class="cover" />
11         {% endif %}
12         <div class="desc">
13             <span class="mono author">{{ author_str }}</span>
14             <span class="title">{{ picture.title }}</span>
15         </div>
16     {% if with_link %}
17     </a>
18     {% endif %}
19     </div>
20 </div>
21
22
23 {% endspaceless %}