From: Frédéric Péters Date: Sat, 24 Jul 2021 13:24:17 +0000 (+0200) Subject: only include download file if file is really available X-Git-Tag: v2022~21 X-Git-Url: https://git.0d.be/?p=panikweb-esperanzah.git;a=commitdiff_plain;h=7c550ff2a4875256237958854d8bf64cd771518f;hp=839f504153cb63eaf49aa3f7f5ea70ca1e0da3b7 only include download file if file is really available --- diff --git a/panikweb_esperanzah/templates/includes/audio.html b/panikweb_esperanzah/templates/includes/audio.html index 2db1bf0..6ae7dd5 100644 --- a/panikweb_esperanzah/templates/includes/audio.html +++ b/panikweb_esperanzah/templates/includes/audio.html @@ -19,7 +19,7 @@ >Écouter le podcast {% if sound|is_format_available:'ogg' %} / Télécharger - {% else %} + {% elif sound|is_format_available:'mp3' %} / Télécharger {% endif %} {% endif %}