fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cover info in audiobooks zip.
[wolnelektury.git]
/
src
/
catalogue
/
templates
/
catalogue
/
book_short.html
diff --git
a/src/catalogue/templates/catalogue/book_short.html
b/src/catalogue/templates/catalogue/book_short.html
index
cc27443
..
6f88cf0
100644
(file)
--- a/
src/catalogue/templates/catalogue/book_short.html
+++ b/
src/catalogue/templates/catalogue/book_short.html
@@
-118,6
+118,7
@@
</li>
<li class="book-box-download">
<div class="book-box-formats">
</li>
<li class="book-box-download">
<div class="book-box-formats">
+ {% trans "Download an ebook" %}:<br>
{% if book.pdf_file %}
<a href="{{ book.pdf_url}}">PDF</a>
{% endif %}
{% if book.pdf_file %}
<a href="{{ book.pdf_url}}">PDF</a>
{% endif %}
@@
-134,9
+135,12
@@
<a href="{{ book.txt_url}}">TXT</a>
{% endif %}
</div>
<a href="{{ book.txt_url}}">TXT</a>
{% endif %}
</div>
- <div class="book-box-formats">
- {% download_audio book %}
- </div>
+ {% if book.has_mp3_file %}
+ <div class="book-box-formats">
+ {% trans "Download audiobook" %}:<br>
+ {% download_audio book %}
+ </div>
+ {% endif %}
<div class="book-box-formats">
{% custom_pdf_link_li book %}
</div>
<div class="book-box-formats">
{% custom_pdf_link_li book %}
</div>
@@
-146,7
+150,7
@@
{% block preview-info %}
<p class="book-box-tools book-box-tools-warn">
{% trans "For now this work is only available for our subscribers." %}
{% 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>
+ <a href="
{% url 'club_join' %}">Wspieraj Wolne Lektury
</a>
</p>
<div>{% content_warning book %}</div>
{% endblock %}
</p>
<div>{% content_warning book %}</div>
{% endblock %}