]> git.0d.be Git - panikweb-esperanzah.git/commitdiff
only include download file if file is really available
authorFrédéric Péters <fpeters@0d.be>
Sat, 24 Jul 2021 13:24:17 +0000 (15:24 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sat, 24 Jul 2021 13:24:17 +0000 (15:24 +0200)
panikweb_esperanzah/templates/includes/audio.html

index 2db1bf05fb66e9e8b16c9e2452e21bd3a46b1a32..6ae7dd515fb90430b1a0fcead020fd4195bb806d 100644 (file)
@@ -19,7 +19,7 @@
                        >Écouter le podcast</button>
                {% if sound|is_format_available:'ogg' %}
                / <a href="{{ sound|format_url:'ogg' }}" download>Télécharger</a>
-               {% else %}
+               {% elif sound|is_format_available:'mp3' %}
                / <a href="{{ sound|format_url:'mp3' }}" download>Télécharger</a>
                {% endif %}
                {% endif %}