X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/07e5d48b0655d447b2dec96ad6e5e81e72ec4837..1d641adedff354dc932c81ae7b1d9f8c41d0b459:/wolnelektury/templates/catalogue/book_detail.html
diff --git a/wolnelektury/templates/catalogue/book_detail.html b/wolnelektury/templates/catalogue/book_detail.html
index c03614cea..125b9bb01 100644
--- a/wolnelektury/templates/catalogue/book_detail.html
+++ b/wolnelektury/templates/catalogue/book_detail.html
@@ -40,39 +40,58 @@
             
-            {% if book.html_file %}
+            {% if book.has_html_file %}
                 
{% trans "Read online" %}
             {% endif %}
-            {% if book.pdf_file %}
+            {% if book.has_pdf_file %}
                 
{% trans "Download PDF" %}
             {% endif %}
-            {% if book.epub_file %}
-                
{% trans "Download EPUB" %}
+            {% if book.root_ancestor.epub_file %}
+                
{% trans "Download EPUB" %}
             {% endif %}
-            {% if book.odt_file %}
-                
{% trans "Download ODT" %}
+            {% if book.has_odt_file %}
+                
ODT
+                
             {% endif %}
-            {% if book.txt_file %}
+            {% if book.has_txt_file %}
                 
{% trans "Download TXT" %}
             {% endif %}
-            {% if book.mp3_file %}
-                
-                    

-                    
{% trans "Artist" %}: {{ book.get_extra_info_value.artist_name }}
-					{% if book.get_extra_info_value.director_name %}
-                        
{% trans "Director" %}: {{ book.get_extra_info_value.director_name }}
-					{% endif %}
-                
-            {% endif %}
-            {% if book.mp3_file %}
{% trans "Download MP3" %}{% endif %}
-            {% if book.ogg_file %}
{% trans "Download Ogg Vorbis" %}{% endif %}
-            {% if book.mp3_file %}
-            
-            {% endif %}
+            {% if book.has_ogg_file %}
+                
OGG
+                
+            {% endif %}       
+            {% if book.has_daisy_file %}
+                
DAISY
+                
+            {% endif %}                 
+            {% if book.has_mp3_file %}
+                
MP3
+                

+                
+                {% for media in book.get_mp3 %}
+                    - {{ media.name }}+
-             
+                      
+                    +                {% endfor %}
+
     
+            {% endif %}