From: yomguy Date: Thu, 7 Feb 2013 15:56:43 +0000 (+0100) Subject: fix media steps X-Git-Tag: 0.9-probarreau~81 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=194be29d0f55d37a4716bcd9997ff7f9f753da5a;p=teleforma.git fix media steps --- diff --git a/teleforma/templates/teleforma/inc/media_step.html b/teleforma/templates/teleforma/inc/media_step.html index fa70aea4..00257a93 100644 --- a/teleforma/templates/teleforma/inc/media_step.html +++ b/teleforma/templates/teleforma/inc/media_step.html @@ -4,30 +4,16 @@ - {% for media_package in media_packages.all %} - {% with media_package.video.all.0 as media %} + {% for media in medias.all %} {% if media.is_published or user.is_staff %} {% endif %} - {% endwith %} {% endfor %}
- {% if media.item.related.all %} - {% with media.item.related.all.0 as related %} - {% if related.title == "preview" %} - {% thumbnail related.file "168x96" as im %} -
- {% trans 'Click here' %} -
- {% endthumbnail %} - {% endif %} - {% endwith %} - {% else %} - {% trans 'Click here' %} - {% endif %} + {{ media.item.title }}
\ No newline at end of file diff --git a/teleforma/templates/teleforma/inc/steps.html b/teleforma/templates/teleforma/inc/steps.html index 723239f3..df51abf9 100644 --- a/teleforma/templates/teleforma/inc/steps.html +++ b/teleforma/templates/teleforma/inc/steps.html @@ -1,6 +1,6 @@ {% load teleforma_tags %} {% load i18n %} - + {% with seminar.docs_1 as docs %}

{% trans "Step" %} 1

@@ -8,11 +8,11 @@ {% include "teleforma/inc/document_step.html" %} {% endwith %} -{% with seminar.media as media_packages %} +{% with seminar.medias as medias %}

{% trans "Step" %} 2

- {% include "teleforma/inc/media_step.html" %} + {% include "teleforma/inc/media_step.html" %} {% endwith %}