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 {% with book.tags_by_category as tags %}
15 <div class="book-left-column">
16 <div class="book-box-body">
17 {% block book-box-body-pre %}
20 <div class="cover-area">
21 {% if book.cover_clean %}
22 <a href="{% block cover-link %}{{ book.get_absolute_url }}{% endblock %}">
23 <img src="{% thumbnail book.cover_clean '139x193' as th %}{{ th.url }}{% endthumbnail %}" alt="Cover" class="cover" />
26 {% block cover-area-extra %}{% endblock %}
29 {% get_current_language as LANGUAGE_CODE %}
30 {% cache 86400 book_box_head_tags book.pk LANGUAGE_CODE %}
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 {% with extra_info=book.get_extra_info_json %}
74 {% if extra_info.location %}
75 <span class="category">
76 <span class="mono"> {% trans "Region" %}:</span> <span class="book-box-tag">
77 {{ extra_info.location }}
82 {% if book.is_foreign %}
83 <span class="category">
84 <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
85 <a>{{ book.language_name }}</a>
90 {% with stage_note=book.stage_note %}
93 <span class="category">
94 <a{% if stage_note.1 %} href="{{ stage_note.1 }}"{% endif %}>{{ stage_note.0 }}</a>
101 {% book_shelf_tags book.pk %}
103 {% cache 86400 book_box_tools book.pk book|status:request.user LANGUAGE_CODE %}
104 {% if book|status:request.user != 'closed' %}
105 <ul class="book-box-tools">
106 <li class="book-box-read">
107 {% if book.html_file %}
108 <div>{% content_warning book %}</div>
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 <div class="book-box-formats">
118 {% trans "Download an ebook" %}:<br>
119 {% if book.pdf_file %}
120 <a href="{{ book.pdf_url}}">PDF</a>
122 {% if book.epub_file %}
123 <a href="{{ book.epub_url}}">EPUB</a>
125 {% if book.mobi_file %}
126 <a href="{{ book.mobi_url}}">MOBI</a>
128 {% if book.fb2_file %}
129 <a href="{{ book.fb2_url}}">FB2</a>
131 {% if book.txt_file %}
132 <a href="{{ book.txt_url}}">TXT</a>
135 {% if book.has_mp3_file %}
136 <div class="book-box-formats">
137 {% trans "Download audiobook" %}:<br>
138 {% download_audio book %}
141 <div class="book-box-formats">
142 {% custom_pdf_link_li book %}
147 {% block preview-info %}
148 <p class="book-box-tools book-box-tools-warn">
149 {% trans "For now this work is only available for our subscribers." %}
150 <a href="{% url 'club_join' %}">Wspieraj Wolne Lektury</a>
152 <div>{% content_warning book %}</div>
156 {% block book-box-extra-info %}{% endblock %}
157 {% block box-append %}{% endblock %}
161 {% if book.abstract %}
162 <div class="abstract more-expand">
163 {{ book.abstract|safe }}
167 <div class="clearboth"></div>