4 {% load catalogue_tags %}
5 {% load book_shelf_tags from social_tags %}
8 {% with ga=book.get_audiobooks %}
9 {% with audiobooks=ga.0 %}
10 <div class="{% block box-class %}book-box{% if audiobooks %} audiobook-box{% endif %}{% endblock %}">
11 <div class="book-box-inner">
13 {% block book-box-pre %}
14 {% include "catalogue/snippets/like_button.html" %}
17 {% with book.tags_by_category as tags %}
18 <div class="book-left-column">
19 <div class="book-box-body">
20 {% block book-box-body-pre %}
23 <div class="cover-area">
24 {% if book.cover_thumb %}
25 <a href="{{ book.get_absolute_url }}">
26 <img src="{{ book.cover_thumb.url }}" alt="Cover" class="cover" />
29 {% block cover-area-extra %}{% endblock %}
32 {% get_current_language as LANGUAGE_CODE %}
33 {% cache 86400 book_box_head_tags book.pk LANGUAGE_CODE %}
34 <div class="book-box-head">
36 {% for tag in tags.author %}
37 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>{% if not forloop.last %},
38 {% endif %}{% endfor %}{% for parent in book.parents %},
39 <a href="{{ parent.get_absolute_url }}">{{ parent.title }}</a>{% endfor %}
42 <a href="{{ book.get_absolute_url }}">{{ book.title }}</a>
44 {% if book.translator %}
46 tłum. {{ book.translator }}
52 <span class="category">
53 <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
54 {% for tag in tags.epoch %}
55 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
56 {% if not forloop.last %}<span>, </span>{% endif %}
60 <span class="category">
61 <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
62 {% for tag in tags.kind %}
63 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
64 {% if not forloop.last %}<span>, </span>{% endif %}
68 <span class="category">
69 <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
70 {% for tag in tags.genre %}
71 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
72 {% if not forloop.last %}<span>, </span>{% endif %}
76 {% if book.extra_info.location %}
77 <span class="category">
78 <span class="mono"> {% trans "Region" %}:</span> <span class="book-box-tag">
79 {{ book.extra_info.location }}
83 {% if book.is_foreign %}
84 <span class="category">
85 <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
86 <a>{{ book.language_name }}</a>
91 {% with stage_note=book.stage_note %}
94 <span class="category">
95 <a{% if stage_note.1 %} href="{{ stage_note.1 }}"{% endif %}>{{ stage_note.0 }}</a>
102 {% book_shelf_tags book.pk %}
104 {% cache 86400 book_box_tools book.pk book|status:request.user LANGUAGE_CODE %}
105 {% if book|status:request.user != 'closed' %}
106 <ul class="book-box-tools">
107 <li class="book-box-read">
108 {% if book.html_file %}
109 <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
111 {% if book.print_on_demand %}
112 <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 –" %}
113 <img src="{% static 'img/ridero.png' %}" style="height: 0.8em;"/></a>
116 <li class="book-box-download">
117 <a class="downarrow">{% trans "Download" %}:</a>
118 <div class="book-box-formats">
119 {% if book.pdf_file %}
120 <span><a href="{{ book.pdf_url}}">PDF</a></span>
122 {% if book.epub_file %}
123 <span><a href="{{ book.epub_url}}">EPUB</a></span>
125 {% if book.mobi_file %}
126 <span><a href="{{ book.mobi_url}}">MOBI</a></span>
128 {% if book.has_audio %}
129 <span><a href="{% url 'download_zip_mp3' book.slug %}">MP3</a></span>
131 <a class="read-more-show hide" href="#">{% trans "more" %}</a>
132 <span class="read-more-content">
133 {% if book.fb2_file %}
134 <span><a href="{{ book.fb2_url}}">FB2</a></span>
136 {% if book.txt_file %}
137 <span><a href="{{ book.txt_url}}">TXT</a></span>
139 {% download_audio book mp3=False %}
141 {% custom_pdf_link_li book %}
142 <a class="read-more-hide hide" href="#">{% trans "less" %}</a>
148 <p class="book-box-tools">{% trans "For now this work is only available for our subscribers." %}
149 <a href="/towarzystwo/">Dołącz do Towarzystwa Przyjaciół Wolnych Lektur</a>
153 {% block book-box-extra-info %}{% endblock %}
154 {% block box-append %}{% endblock %}
158 {% block right-column %}
159 {% if audiobooks %}{% if book|status:request.user != 'closed' %}
160 <div class="book-right-column">
161 {% include 'catalogue/snippets/jplayer.html' %}
163 {% endif %}{% endif %}
165 {% if book.abstract %}
166 <div class="abstract more-expand">
167 {{ book.abstract|safe }}
171 <div class="clearboth"></div>