From: Yoan Le Clanche Date: Tue, 4 Jan 2022 12:11:28 +0000 (+0100) Subject: Notelemeta fixes X-Git-Tag: 2.8.1-pro~138 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=292431466b0034e7533a69205fe0a1a649dd431d;p=teleforma.git Notelemeta fixes --- diff --git a/teleforma/templates/teleforma/inc/media_package_list.html b/teleforma/templates/teleforma/inc/media_package_list.html index 649a51b2..14c9d9a1 100644 --- a/teleforma/templates/teleforma/inc/media_package_list.html +++ b/teleforma/templates/teleforma/inc/media_package_list.html @@ -9,18 +9,16 @@ - {% with media.item.related.all|preview as related %} - {% if related %} + {% if im.poster_file %} {% thumbnail related.file "168x98" as im %} -
+
{% trans 'Click here' %}
{% endthumbnail %} {% else %} {% trans 'Click here' %} {% endif %} - {% endwith %} -
+
@@ -35,7 +33,7 @@ {% if media.description %}
{% trans "Description" %}
{{ media.description }}
{% endif %} -
{% trans "Duration" %}
{{ media.item.approx_duration|fancy_duration }}
+
{% trans "Duration" %}
{{ media.approx_duration|fancy_duration }}
diff --git a/teleforma/templates/teleforma/inc/media_step.html b/teleforma/templates/teleforma/inc/media_step.html index 13defac4..7e471534 100644 --- a/teleforma/templates/teleforma/inc/media_step.html +++ b/teleforma/templates/teleforma/inc/media_step.html @@ -9,7 +9,7 @@ - {{ media.item.title }}{% if user in media.readers.all %} {% endif %} + {{ media.title }}{% if user in media.readers.all %} {% endif %} diff --git a/teleforma/templates/teleforma/inc/steps.html b/teleforma/templates/teleforma/inc/steps.html index 7aae6781..bee8e3d5 100644 --- a/teleforma/templates/teleforma/inc/steps.html +++ b/teleforma/templates/teleforma/inc/steps.html @@ -49,11 +49,4 @@ {% endwith %} {% endif %} -{% if seminar|validated:user %} -
-

{% trans "Step" %} 7

-
-{% include "teleforma/inc/testimonial_step.html" %} -{% endif %} - {% endif %} \ No newline at end of file diff --git a/teleforma/templates/teleforma/seminar_media_audio.html b/teleforma/templates/teleforma/seminar_media_audio.html index f47f3e27..0f5aef92 100644 --- a/teleforma/templates/teleforma/seminar_media_audio.html +++ b/teleforma/templates/teleforma/seminar_media_audio.html @@ -34,17 +34,11 @@ {% else %}
+{% if media.poster_file %}
-{% if media.item.related.all %} - {% for related in media.item.related.all %} - {% if related.title == "preview" %} - - {% endif %} - {% endfor %} -{% else %} - snapshot -{% endif %} +
+{% endif %}