translation update
[wolnelektury.git] / src / catalogue / templates / catalogue / book_short.html
1 {% spaceless %}
2 {% load i18n %}
3 {% load catalogue_tags %}
4 {% load book_shelf_tags from social_tags %}
5 <div class="{% block box-class %}book-box{% if audiobooks %} audiobook-box{% endif %}{% endblock %}">
6 <div class="book-box-inner">
7
8 {% block book-box-pre %}
9     {% include "catalogue/snippets/like_button.html" %}
10 {% endblock %}
11
12 <div class="book-left-column">
13
14     <div class="book-box-body">
15         {% block book-box-body-pre %}
16         {% endblock %}
17
18         <div class="book-box-head">
19             <div class="author">
20                 {% for tag in tags.author %}
21                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>{% if not forloop.last %},
22                 {% endif %}{% endfor %}{% for parent in parents %},
23                     <a href="{{ parent.get_absolute_url }}">{{ parent.title }}</a>{% endfor %}
24             </div>
25             <div class="title">
26                 {% if main_link %}<a href="{{ main_link }}">{% endif %}{{ book.title }}{% if main_link %}</a>{% endif %}
27             </div>
28         </div>
29
30         <div class="cover-area">
31             {% if book.cover_thumb %}
32                 {% if main_link %}<a href="{{ main_link }}">{% endif %}
33                     <img src="{{ book.cover_thumb.url }}" alt="Cover" class="cover" />
34                 {% if main_link %}</a>{% endif %}
35             {% endif %}
36             {% block cover-area-extra %}{% endblock %}
37         </div>
38
39         <div class="tags">
40             {% spaceless %}
41
42             <span class="category">
43             <span class="mono"> {% trans "Epoch" %}:</span>&nbsp;<span class="book-box-tag">
44                 {% for tag in tags.epoch %}
45                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
46                     {% if not forloop.last %}<span>, </span>{% endif %}
47                 {% endfor %}
48             </span></span>
49
50             <span class="category">
51             <span class="mono"> {% trans "Kind" %}:</span>&nbsp;<span class="book-box-tag">
52                 {% for tag in tags.kind %}
53                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
54                     {% if not forloop.last %}<span>, </span>{% endif %}
55                 {% endfor %}
56             </span></span>
57
58             <span class="category">
59             <span class="mono"> {% trans "Genre" %}:</span>&nbsp;<span class="book-box-tag">
60                 {% for tag in tags.genre %}
61                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
62                     {% if not forloop.last %}<span>, </span>{% endif %}
63                 {% endfor %}
64             </span></span>
65
66             {% if show_lang %}
67             <span class="category">
68             <span class="mono"> {% trans "Language" %}:</span>&nbsp;<span class="book-box-tag">
69                 <a>{{ book.language_name }}</a>
70             </span></span>
71             {% endif %}
72
73             {% if stage_note %}
74             <br><span class="category">
75                 <a{% if stage_note_url %} href="{{ stage_note_url }}"{% endif %}>{{ stage_note }}</a>
76             </span>
77             {% endif %}
78
79            {% endspaceless %}
80         </div>
81     </div>
82     {% book_shelf_tags book.pk %}
83
84     <ul class="book-box-tools">
85         <li class="book-box-read">
86         {% if book.html_file %}
87             <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
88         {% endif %}
89         </li>
90         <li class="book-box-download">
91             <a class="downarrow">{% trans "Download" %}: </a>
92             <div class="book-box-formats">
93              {% if book.pdf_file %}
94              <span><a href="{{ book.pdf_file.url}}">PDF</a></span>
95              {% endif %}
96              {% custom_pdf_link_li book %}
97              {% if book.epub_file %}
98              <span><a href="{{ book.epub_file.url}}">EPUB</a></span>
99              {% endif %}
100              {% if book.mobi_file %}
101              <span><a href="{{ book.mobi_file.url}}">MOBI</a></span>
102              {% endif %}
103              {% if  book.fb2_file %}
104              <span><a href="{{ book.fb2_file.url}}">FB2</a></span>
105              {% endif %}
106              {% if  book.txt_file %}
107              <span><a href="{{ book.txt_file.url}}">TXT</a></span>
108              {% endif %}
109              {% download_audio book %}
110             </div>
111         </li>
112     </ul>
113     {% block book-box-extra-info %}{% endblock %}
114     {% block box-append %}
115     {% endblock %}
116 </div>
117
118 {% block right-column %}
119     {% if audiobooks %}
120         <div class="audiobook-right-column">
121             {% include 'catalogue/snippets/jplayer.html' %}
122         </div>
123     {% endif %}
124 {% endblock %}
125
126 <div class="clearboth"></div>
127 </div>
128 </div>
129 {% endspaceless %}