Remove babel dependency, chores.
[wolnelektury.git] / src / picture / templates / picture / picture_mini_box.html
1 {% spaceless %}
2   {% load thumbnail %}
3   {% with picture.author_unicode as author %}
4   <div class="book-mini-box">
5     <div class="book-mini-box-inner">
6       <a href="{{ picture.get_absolute_url }}">
7         {% if picture.image_file %}
8           <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" />
9         {% endif %}
10         <div class="desc">
11           <span class="mono author">{{ author }}</span>
12           <span class="title">{{ picture.title }}</span>
13         </div>
14       </a>
15     </div>
16   </div>
17   {% endwith %}
18 {% endspaceless %}