From: yomguy Date: Wed, 2 Jan 2013 23:47:21 +0000 (+0100) Subject: fix audio snap X-Git-Tag: 0.9-probarreau~176 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8a8b7b27494ee8c54cc1f56235ffcf25d72da5db;p=teleforma.git fix audio snap --- diff --git a/teleforma/templates/teleforma/seminar_media_audio.html b/teleforma/templates/teleforma/seminar_media_audio.html index e029d230..32d47601 100644 --- a/teleforma/templates/teleforma/seminar_media_audio.html +++ b/teleforma/templates/teleforma/seminar_media_audio.html @@ -37,6 +37,20 @@ {% else %}
+
+{% with media_package.audio.all.0 as media %} +{% if media.item.related.all %} + {% for related in media.item.related.all %} + {% if related.title == "preview" %} + + {% endif %} + {% endfor %} +{% else %} + snapshot +{% endif %} +{% endwith %} +
+