Infopages fixture becomes initial data.
[wolnelektury.git] / wolnelektury / templates / catalogue / book_detail.html
index c03614c..0158eb8 100644 (file)
@@ -46,8 +46,8 @@
             {% if book.pdf_file %}
                 <a href="{{ book.pdf_file.url }}">{% trans "Download PDF" %}</a>
             {% endif %}
             {% 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>
             {% endif %}
             {% if book.odt_file %}
                 <a href="{{ book.odt_file.url }}">{% trans "Download ODT" %}</a>
@@ -66,6 +66,7 @@
             {% endif %}
             {% if book.mp3_file %}<a href="{{ book.mp3_file.url }}">{% trans "Download MP3" %}</a>{% endif %}
             {% if book.ogg_file %}<a href="{{ book.ogg_file.url }}">{% trans "Download Ogg Vorbis" %}</a>{% endif %}
             {% endif %}
             {% if book.mp3_file %}<a href="{{ book.mp3_file.url }}">{% trans "Download MP3" %}</a>{% endif %}
             {% if book.ogg_file %}<a href="{{ book.ogg_file.url }}">{% trans "Download Ogg Vorbis" %}</a>{% endif %}
+            {% if book.daisy_file %}<a href="{{ book.daisy_file.url }}">{% trans "Download DAISY" %}</a>{% endif %}
             {% if book.mp3_file %}
             <object type="application/x-shockwave-flash" style="margin-top: 0.5em" data="{{ STATIC_URL }}player.swf" width="426" height="20">
                 <param name="movie" value="{{ STATIC_URL }}player.swf" />
             {% if book.mp3_file %}
             <object type="application/x-shockwave-flash" style="margin-top: 0.5em" data="{{ STATIC_URL }}player.swf" width="426" height="20">
                 <param name="movie" value="{{ STATIC_URL }}player.swf" />