3 {% load catalogue_tags %}
4 {% load book_shelf_tags from social_tags %}
6 <div class="{% block box-class %}book-box{% if audiobooks %} audiobook-box{% endif %}{% endblock %}">
7 <div class="book-box-inner">
9 {% block book-box-pre %}
10 {% include "catalogue/snippets/like_button.html" %}
13 <div class="book-left-column">
14 <div class="book-box-body">
15 {% block book-box-body-pre %}
18 <div class="book-box-head">
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 %}
26 {% if main_link %}<a href="{{ main_link }}">{% endif %}{{ book.title }}{% if main_link %}</a>{% endif %}
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 %}
36 {% block cover-area-extra %}{% endblock %}
40 <span class="category">
41 <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
42 {% for tag in tags.epoch %}
43 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
44 {% if not forloop.last %}<span>, </span>{% endif %}
48 <span class="category">
49 <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
50 {% for tag in tags.kind %}
51 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
52 {% if not forloop.last %}<span>, </span>{% endif %}
56 <span class="category">
57 <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
58 {% for tag in tags.genre %}
59 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
60 {% if not forloop.last %}<span>, </span>{% endif %}
65 <span class="category">
66 <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
67 <a>{{ book.language_name }}</a>
74 <span class="category">
75 <a{% if stage_note_url %} href="{{ stage_note_url }}"{% endif %}>{{ stage_note }}</a>
80 {% book_shelf_tags book.pk %}
82 <ul class="book-box-tools">
83 <li class="book-box-read">
84 {% if book.html_file %}
85 <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
88 <li class="book-box-download">
89 <a class="downarrow">{% trans "Download" %}:</a>
90 <div class="book-box-formats">
91 {% if book.pdf_file %}
92 <span><a href="{{ book.pdf_file.url}}">PDF</a></span>
94 {% custom_pdf_link_li book %}
95 {% if book.epub_file %}
96 <span><a href="{{ book.epub_file.url}}">EPUB</a></span>
98 {% if book.mobi_file %}
99 <span><a href="{{ book.mobi_file.url}}">MOBI</a></span>
101 {% if book.fb2_file %}
102 <span><a href="{{ book.fb2_file.url}}">FB2</a></span>
104 {% if book.txt_file %}
105 <span><a href="{{ book.txt_file.url}}">TXT</a></span>
107 {% download_audio book %}
111 {% block book-box-extra-info %}{% endblock %}
112 {% block box-append %}
116 {% block right-column %}
118 <div class="audiobook-right-column">
119 {% include 'catalogue/snippets/jplayer.html' %}
124 <div class="clearboth"></div>