{% 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>