{% spaceless %}
{% load i18n %}
+ {% load thumbnail %}
{% load cache %}
{% load catalogue_tags %}
{% load book_shelf_tags from social_tags %}
<div class="{% block box-class %}book-box{% if audiobooks %} audiobook-box{% endif %}{% endblock %}">
<div class="book-box-inner">
- {% block book-box-pre %}
- {% include "catalogue/snippets/like_button.html" %}
- {% endblock %}
-
{% with book.tags_by_category as tags %}
<div class="book-left-column">
<div class="book-box-body">
{% endblock %}
<div class="cover-area">
- {% if book.cover_thumb %}
+ {% if book.cover_clean %}
<a href="{% block cover-link %}{{ book.get_absolute_url }}{% endblock %}">
- <img src="{{ book.cover_thumb.url }}" alt="Cover" class="cover" />
+ <img src="{% thumbnail book.cover_clean '139x193' as th %}{{ th.url }}{% endthumbnail %}" alt="Cover" class="cover" />
</a>
{% endif %}
{% block cover-area-extra %}{% endblock %}
<div class="tags">
<span class="category">
- <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
+ <span class="mono"> {% trans "Epoka" %}:</span> <span class="book-box-tag">
{% for tag in tags.epoch %}
<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
{% if not forloop.last %}<span>, </span>{% endif %}
</span></span>
<span class="category">
- <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
+ <span class="mono"> {% trans "Rodzaj" %}:</span> <span class="book-box-tag">
{% for tag in tags.kind %}
<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
{% if not forloop.last %}<span>, </span>{% endif %}
</span></span>
<span class="category">
- <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
+ <span class="mono"> {% trans "Gatunek" %}:</span> <span class="book-box-tag">
{% for tag in tags.genre %}
<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
{% if not forloop.last %}<span>, </span>{% endif %}
{% if book.is_foreign %}
<span class="category">
- <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
+ <span class="mono"> {% trans "Język" %}:</span> <span class="book-box-tag">
<a>{{ book.language_name }}</a>
</span>
</span>
<li class="book-box-read">
{% if book.html_file %}
<div>{% content_warning book %}</div>
- <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
+ <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Czytaj online" %}</a>
{% endif %}
{% if book.print_on_demand %}
- <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 –" %}
+ <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 "Druk na żądanie z" %}
<img src="{% static 'img/ridero.png' %}" style="height: 0.8em;"/></a>
{% endif %}
</li>
<li class="book-box-download">
<div class="book-box-formats">
+ {% trans "Pobierz ebook" %}:<br>
{% if book.pdf_file %}
<a href="{{ book.pdf_url}}">PDF</a>
{% endif %}
<a href="{{ book.txt_url}}">TXT</a>
{% endif %}
</div>
+ {% if book.has_mp3_file %}
+ <div class="book-box-formats">
+ {% trans "Pobierz audiobook" %}:<br>
+ {% download_audio book %}
+ </div>
+ {% endif %}
<div class="book-box-formats">
- {% download_audio book %}
- </div>
- <div class="book-box-formats">
- {% custom_pdf_link_li book %}
+ {% custom_pdf_link_li book %}
</div>
</li>
</ul>
{% else %}
{% block preview-info %}
<p class="book-box-tools book-box-tools-warn">
- {% trans "For now this work is only available for our subscribers." %}
- <a href="/towarzystwo/">Dołącz do Towarzystwa Przyjaciół Wolnych Lektur</a>
+ Ten utwór jest na razie dostępny wyłącznie dla naszych Darczyńców.
+ <a href="{% url 'club_join' %}">Wspieraj Wolne Lektury</a>
</p>
<div>{% content_warning book %}</div>
{% endblock %}
</div>
{% endwith %}
- {% block right-column %}
- {% if audiobooks %}{% if book|status:request.user != 'closed' %}
- <div class="book-right-column">
- {% include 'catalogue/snippets/jplayer.html' %}
- </div>
- {% endif %}{% endif %}
- {% endblock %}
{% if book.abstract %}
<div class="abstract more-expand">
{{ book.abstract|safe }}