X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/07e5d48b0655d447b2dec96ad6e5e81e72ec4837..4dc96918a2e2df441c282a7abbb89235ecb4f2f7:/wolnelektury/templates/catalogue/book_detail.html diff --git a/wolnelektury/templates/catalogue/book_detail.html b/wolnelektury/templates/catalogue/book_detail.html index c03614cea..fed2d5b26 100644 --- a/wolnelektury/templates/catalogue/book_detail.html +++ b/wolnelektury/templates/catalogue/book_detail.html @@ -46,8 +46,8 @@ {% if book.pdf_file %} <a href="{{ book.pdf_file.url }}">{% trans "Download PDF" %}</a> {% endif %} - {% if book.epub_file %} - <a href="{{ book.epub_file.url }}">{% trans "Download EPUB" %}</a> + {% if book.root_ancestor.epub_file %} + <a href="{{ book.root_ancestor.epub_file.url }}">{% trans "Download EPUB" %}</a> {% endif %} {% if book.odt_file %} <a href="{{ book.odt_file.url }}">{% trans "Download ODT" %}</a>