merge search into pretty branch
[wolnelektury.git] / wolnelektury / templates / catalogue / book_short.html
1 {% load i18n %}
2 {% load thumbnail %}
3 <div class="book-box">
4 <div class="book-box-inner">
5     <a href="{{ book.get_absolute_url }}">
6         {% if book.cover %}
7             <img src="
8                 {% thumbnail book.cover "216x288" as thumb %}
9                     {{ thumb.url }}
10                 {% empty %}
11                     {{ book.cover.url }}
12                 {% endthumbnail %}
13             " alt="Cover" />
14         {% endif %}
15     </a>
16     <div class="book-box-body">
17         <div class="book-box-head">
18             <div class="mono author">
19             {% for author in tags.author %}
20                 {{ author }}
21             {% endfor %}
22             </div>
23             <div class="title">{{ book.title }}</div>
24         </div>
25         <div class="tags">
26             {% spaceless %}
27
28             <span class="mono">{% trans "Epoch" %}:&nbsp;</span>
29             <span class="book-box-tag">
30                 {% for tag in tags.epoch %}
31                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }} </a>
32                 {% endfor %}
33             </span>
34
35             <span class="mono">{% trans "Kind" %}:&nbsp;</span>
36             <span class="book-box-tag">
37                 {% for tag in tags.kind %}
38                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }} </a>
39                 {% endfor %}
40             </span>
41
42             <span class="mono">{% trans "Genre" %}:&nbsp;</span>
43             <span class="book-box-tag">
44                 {% for tag in tags.genre %}
45                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }} </a>
46                 {% endfor %}
47             </span>
48
49             {% endspaceless %}
50         </div>
51     </div>
52     <ul class="book-box-tools">
53         <li class="book-box-read">
54         {% if book.html_file %}
55             <a href="" class="mono">{% trans "Read online" %}</a>
56         {% endif %}
57         </li>
58         <li class="book-box-download">
59             <a class="mono">{% trans "Download" %}</a>
60             <div class="book-box-formats mono">
61                 {{ formats|join:"" }}
62             </div>
63         </li>
64         <li class="book-box-audiobook">
65         {% if book.has_mp3_file %}
66             <a href="" class="mono">{% trans "Audiobook" %}</a>
67         {% endif %}
68         </li>
69     </ul>
70 </div>
71 </div>