3 {% load catalogue_tags %}
4 {% load book_shelf_tags from social_tags %}
7 {% with ga=book.get_audiobooks %}
8 {% with audiobooks=ga.0 %}
9 <div class="{% block box-class %}book-box{% if audiobooks %} audiobook-box{% endif %}{% endblock %}">
10 <div class="book-box-inner">
12 {% block book-box-pre %}
13 {% include "catalogue/snippets/like_button.html" %}
16 {% with book.tags_by_category as tags %}
17 <div class="book-left-column">
18 <div class="book-box-body">
19 {% block book-box-body-pre %}
22 <div class="cover-area">
23 {% if book.cover_thumb %}
24 <a href="{{ book.get_absolute_url }}">
25 <img src="{{ book.cover_thumb.url }}" alt="Cover" class="cover" />
28 {% block cover-area-extra %}{% endblock %}
31 <div class="book-box-head">
33 {% for tag in tags.author %}
34 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>{% if not forloop.last %},
35 {% endif %}{% endfor %}{% for parent in book.parents %},
36 <a href="{{ parent.get_absolute_url }}">{{ parent.title }}</a>{% endfor %}
39 <a href="{{ book.get_absolute_url }}">{{ book.title }}</a>
41 {% if book.translator %}
43 tłum. {{ book.translator }}
49 <span class="category">
50 <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
51 {% for tag in tags.epoch %}
52 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
53 {% if not forloop.last %}<span>, </span>{% endif %}
57 <span class="category">
58 <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
59 {% for tag in tags.kind %}
60 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
61 {% if not forloop.last %}<span>, </span>{% endif %}
65 <span class="category">
66 <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
67 {% for tag in tags.genre %}
68 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
69 {% if not forloop.last %}<span>, </span>{% endif %}
73 {% if book.extra_info.location %}
74 <span class="category">
75 <span class="mono"> {% trans "Region" %}:</span> <span class="book-box-tag">
76 {{ book.extra_info.location }}
80 {% if book.is_foreign %}
81 <span class="category">
82 <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
83 <a>{{ book.language_name }}</a>
88 {% with stage_note=book.stage_note %}
91 <span class="category">
92 <a{% if stage_note.1 %} href="{{ stage_note.1 }}"{% endif %}>{{ stage_note.0 }}</a>
98 {% book_shelf_tags book.pk %}
100 {% if book|status:request.user != 'closed' %}
101 <ul class="book-box-tools">
102 <li class="book-box-read">
103 {% if book.html_file %}
104 <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
106 {% if book.print_on_demand %}
107 <a href="{{ book.ridero_link }}" class="downarrow print tlite-tooltip" title="{% trans "Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia.<br>Wszystkie nasze zasoby w wersji elektronicznej są zawsze dostępne bezpłatnie." %}">{% trans "Print on demand –" %}
108 <img src="{% static 'img/ridero.png' %}" style="height: 0.8em;"/></a>
111 <li class="book-box-download">
112 <a class="downarrow">{% trans "Download" %}:</a>
113 <div class="book-box-formats">
114 {% if book.pdf_file %}
115 <span><a href="{{ book.pdf_url}}">PDF</a></span>
117 {% if book.epub_file %}
118 <span><a href="{{ book.epub_url}}">EPUB</a></span>
120 {% if book.mobi_file %}
121 <span><a href="{{ book.mobi_url}}">MOBI</a></span>
123 {% if book.has_audio %}
124 <span><a href="{% url 'download_zip_mp3' book.slug %}">MP3</a></span>
126 <a class="read-more-show hide" href="#">{% trans "more" %}</a>
127 <span class="read-more-content">
128 {% if book.fb2_file %}
129 <span><a href="{{ book.fb2_url}}">FB2</a></span>
131 {% if book.txt_file %}
132 <span><a href="{{ book.txt_url}}">TXT</a></span>
134 {% download_audio book mp3=False %}
136 {% custom_pdf_link_li book %}
137 <a class="read-more-hide hide" href="#">{% trans "less" %}</a>
143 <p class="book-box-tools">{% trans "For now this work is only available for our subscribers." %}</p>
145 {% block book-box-extra-info %}{% endblock %}
146 {% block box-append %}{% endblock %}
150 {% block right-column %}
152 <div class="book-right-column">
153 {% include 'catalogue/snippets/jplayer.html' %}
157 {% if book.abstract %}
158 <div class="abstract more-expand">
159 {{ book.abstract|safe }}
163 <div class="clearboth"></div>