From f845c64dc45adc7c225890b4cb19944fd4b57d6a Mon Sep 17 00:00:00 2001 From: Emilie Date: Mon, 10 Oct 2016 11:24:01 +0200 Subject: [PATCH] Media : media shutter on home --- app/templates/media/inc/media_shutter.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/templates/media/inc/media_shutter.html 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 %} -- 2.39.5