jplayer
[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" %}:</span>&nbsp;<span class="book-box-tag">
29                 {% for tag in tags.epoch %}
30                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }} </a>
31                 {% endfor %}
32             </span>
33
34             <span class="mono">{% trans "Kind" %}:</span>&nbsp;<span class="book-box-tag">
35                 {% for tag in tags.kind %}
36                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }} </a>
37                 {% endfor %}
38             </span>
39
40             <span class="mono">{% trans "Genre" %}:</span>&nbsp;<span class="book-box-tag">
41                 {% for tag in tags.genre %}
42                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }} </a>
43                 {% endfor %}
44             </span>
45
46             {% endspaceless %}
47         </div>
48     </div>
49     <ul class="book-box-tools">
50         <li class="book-box-read">
51         {% if book.html_file %}
52             <a href="{% url book_text book.urlid %}" class="mono">{% trans "Read online" %}</a>
53         {% endif %}
54         </li>
55         <li class="book-box-download">
56             <a class="mono">{% trans "Download" %}</a>
57             <div class="book-box-formats mono">
58                 {{ formats|join:"" }}
59             </div>
60         </li>
61         <li class="book-box-audiobook">
62         {% if book.has_mp3_file %}
63             <a href="{% url book_player book.slug %}" class="open-player mono">{% trans "Listen" %}</a>
64         {% endif %}
65         </li>
66     </ul>
67 </div>
68 </div>