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="book-box-head">
24 {% for tag in tags.author %}
25 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>{% if not forloop.last %},
26 {% endif %}{% endfor %}{% for parent in book.parents %},
27 <a href="{{ parent.get_absolute_url }}">{{ parent.title }}</a>{% endfor %}
30 <a href="{{ book.get_absolute_url }}">{{ book.title }}</a>
32 {% if book.translator %}
34 tłum. {{ book.translator }}
39 <div class="cover-area">
40 {% if book.cover_thumb %}
41 <a href="{{ book.get_absolute_url }}">
42 <img src="{{ book.cover_thumb.url }}" alt="Cover" class="cover" />
45 {% block cover-area-extra %}{% endblock %}
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.is_foreign %}
74 <span class="category">
75 <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
76 <a>{{ book.language_name }}</a>
81 {% with stage_note=book.stage_note %}
84 <span class="category">
85 <a{% if stage_note.1 %} href="{{ stage_note.1 }}"{% endif %}>{{ stage_note.0 }}</a>
91 {% book_shelf_tags book.pk %}
93 <ul class="book-box-tools">
94 <li class="book-box-read">
95 {% if book.html_file %}
96 <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
98 {% if book.print_on_demand %}
99 <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 –" %}
100 <img src="{% static 'img/ridero.png' %}" style="height: 0.8em;"/></a>
103 <li class="book-box-download">
104 <a class="downarrow">{% trans "Download" %}:</a>
105 <div class="book-box-formats">
106 {% if book.pdf_file %}
107 <span><a href="{{ book.pdf_file.url}}">PDF</a></span>
109 {% custom_pdf_link_li book %}
110 {% if book.epub_file %}
111 <span><a href="{{ book.epub_file.url}}">EPUB</a></span>
113 {% if book.mobi_file %}
114 <span><a href="{{ book.mobi_file.url}}">MOBI</a></span>
116 {% if book.fb2_file %}
117 <span><a href="{{ book.fb2_file.url}}">FB2</a></span>
119 {% if book.txt_file %}
120 <span><a href="{{ book.txt_file.url}}">TXT</a></span>
122 {% download_audio book %}
126 {% block book-box-extra-info %}{% endblock %}
127 {% block box-append %}
132 {% block right-column %}
134 <div class="audiobook-right-column">
135 {% include 'catalogue/snippets/jplayer.html' %}
140 <div class="clearboth"></div>