some css tweaks to download popup and logo/tagline shifted right a bit
[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 downarrow">{% trans "Read online" %}</a>
53         {% endif %}
54         </li>
55         <li class="book-box-download">
56             <a class="mono downarrow">{% trans "Download" %}</a>
57             <div class="book-box-formats mono">
58               {% if formats.pdf %}
59               <span><a href="{{formats.pdf.url}}">PDF</a> do wydruku</span>
60               {% endif %}
61               {% if formats.epub %}
62               <span><a href="{{formats.epub.url}}">EPUB</a> na czytnik</span>
63               {% endif %}
64               {% if formats.mobi %}
65               <span><a href="{{formats.mobi.url}}">MOBI</a> na Kindle</span>
66               {% endif %}
67               {% if formats.txt %}
68               <span><a href="{{formats.txt.url}}">TXT</a> do zadaƄ specjalnych</span>
69               {% endif %}
70             </div>
71         </li>
72         <li class="book-box-audiobook">
73         {% if book.has_mp3_file %}
74             <a href="" class="mono downarrow">{% trans "Audiobook" %}</a>
75         {% endif %}
76         </li>
77     </ul>
78 </div>
79 </div>