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