5 {% load catalogue_tags %}
6 {% load book_shelf_tags from social_tags %}
9 {% with ga=book.get_audiobooks %}
10 {% with audiobooks=ga.0 %}
11 <div class="{% block box-class %}book-box{% if audiobooks %} audiobook-box{% endif %}{% endblock %}">
12 <div class="book-box-inner">
14 {% block book-box-pre %}
15 {% include "catalogue/snippets/like_button.html" %}
18 {% with book.tags_by_category as tags %}
19 <div class="book-left-column">
20 <div class="book-box-body">
21 {% block book-box-body-pre %}
24 <div class="cover-area">
25 {% if book.cover_clean %}
26 <a href="{% block cover-link %}{{ book.get_absolute_url }}{% endblock %}">
27 <img src="{% thumbnail book.cover_clean '139x193' as th %}{{ th.url }}{% endthumbnail %}" alt="Cover" class="cover" />
30 {% block cover-area-extra %}{% endblock %}
33 {% get_current_language as LANGUAGE_CODE %}
34 {% cache 86400 book_box_head_tags book.pk LANGUAGE_CODE %}
35 <div class="book-box-head">
37 {% for tag in tags.author %}
38 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>{% if not forloop.last %},
39 {% endif %}{% endfor %}{% for parent in book.parents %},
40 <a href="{{ parent.get_absolute_url }}">{{ parent.title }}</a>{% endfor %}
43 <a href="{{ book.get_absolute_url }}">{{ book.title }}</a>
45 {% if book.translator %}
47 tłum. {{ book.translator }}
53 <span class="category">
54 <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
55 {% for tag in tags.epoch %}
56 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
57 {% if not forloop.last %}<span>, </span>{% endif %}
61 <span class="category">
62 <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
63 {% for tag in tags.kind %}
64 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
65 {% if not forloop.last %}<span>, </span>{% endif %}
69 <span class="category">
70 <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
71 {% for tag in tags.genre %}
72 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
73 {% if not forloop.last %}<span>, </span>{% endif %}
77 {% with extra_info=book.get_extra_info_json %}
78 {% if extra_info.location %}
79 <span class="category">
80 <span class="mono"> {% trans "Region" %}:</span> <span class="book-box-tag">
81 {{ extra_info.location }}
86 {% if book.is_foreign %}
87 <span class="category">
88 <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
89 <a>{{ book.language_name }}</a>
94 {% with stage_note=book.stage_note %}
97 <span class="category">
98 <a{% if stage_note.1 %} href="{{ stage_note.1 }}"{% endif %}>{{ stage_note.0 }}</a>
105 {% book_shelf_tags book.pk %}
107 {% cache 86400 book_box_tools book.pk book|status:request.user LANGUAGE_CODE %}
108 {% if book|status:request.user != 'closed' %}
109 <ul class="book-box-tools">
110 <li class="book-box-read">
111 {% if book.html_file %}
112 <div>{% content_warning book %}</div>
113 <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
115 {% if book.print_on_demand %}
116 <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 –" %}
117 <img src="{% static 'img/ridero.png' %}" style="height: 0.8em;"/></a>
120 <li class="book-box-download">
121 <div class="book-box-formats">
122 {% trans "Download an ebook" %}:<br>
123 {% if book.pdf_file %}
124 <a href="{{ book.pdf_url}}">PDF</a>
126 {% if book.epub_file %}
127 <a href="{{ book.epub_url}}">EPUB</a>
129 {% if book.mobi_file %}
130 <a href="{{ book.mobi_url}}">MOBI</a>
132 {% if book.fb2_file %}
133 <a href="{{ book.fb2_url}}">FB2</a>
135 {% if book.txt_file %}
136 <a href="{{ book.txt_url}}">TXT</a>
139 {% if book.has_mp3_file %}
140 <div class="book-box-formats">
141 {% trans "Download audiobook" %}:<br>
142 {% download_audio book %}
145 <div class="book-box-formats">
146 {% custom_pdf_link_li book %}
151 {% block preview-info %}
152 <p class="book-box-tools book-box-tools-warn">
153 {% trans "For now this work is only available for our subscribers." %}
154 <a href="{% url 'club_join' %}">Wspieraj Wolne Lektury</a>
156 <div>{% content_warning book %}</div>
160 {% block book-box-extra-info %}{% endblock %}
161 {% block box-append %}{% endblock %}
165 {% block right-column %}
166 {% if audiobooks %}{% if book|status:request.user != 'closed' %}
167 <div class="book-right-column">
168 {% include 'catalogue/snippets/jplayer.html' %}
170 {% endif %}{% endif %}
172 {% if book.abstract %}
173 <div class="abstract more-expand">
174 {{ book.abstract|safe }}
178 <div class="clearboth"></div>