From: Emilie Date: Mon, 10 Oct 2016 09:24:01 +0000 (+0200) Subject: Media : media shutter on home X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f845c64dc45adc7c225890b4cb19944fd4b57d6a;p=mezzo.git Media : media shutter on home --- diff --git a/app/templates/media/inc/media_shutter.html b/app/templates/media/inc/media_shutter.html new file mode 100644 index 00000000..13835371 --- /dev/null +++ b/app/templates/media/inc/media_shutter.html @@ -0,0 +1,19 @@ +{% load mezzanine_tags keyword_tags i18n organization_tags %} +{% for media in home.dynamic_content_home_media.all|slice:":3" %} +
+
+

{{ media.content_object.title }}

+ {% if media.content_object.description %} +

{{ media.content_object.description|truncatechars:100 }}

+ {% endif %} + {% if media.content_object.poster_url %} + + {% endif %} + {% if media.content_type.model == 'video' %} + {% trans 'See the video' %} + {% elif media.content_type.model == 'audio' %} + {% trans 'Hear the sound' %} + {% endif %} +
+
+{% endfor %}