image listings / boxes work but need polishing. started coding the viewer.
[wolnelektury.git] / apps / picture / templates / picture / picture_mini_box.html
1
2 {% load thumbnail %}
3 <div class="book-mini-box">
4     <a href="{{ book.get_absolute_url }}">
5         {% if picture.cover %}
6             <img src="
7                 {% thumbnail book.cover "139x193" as thumb %}
8                     {{ thumb.url }}
9                 {% empty %}
10                     {{ book.cover.url }}
11                 {% endthumbnail %}
12             " alt="{{ author_str }} – {{ book.title }}" class="cover" />
13         {% endif %}
14         <div class="desc">
15             <span class="mono author">{{ author_str }}</span>
16             <span class="title">{{ book.title }}</span>
17         </div>
18     </a>
19 </div>
20
21