From: Emilie Date: Wed, 31 Aug 2016 10:11:40 +0000 (+0200) Subject: Task #109 : creating video templates X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=38c75b23a723a952d3a0bc056b02d0e254895beb;p=mezzo.git Task #109 : creating video templates --- diff --git a/app/templates/core/inc/video.html b/app/templates/core/inc/video.html new file mode 100644 index 00000000..b2b52ddb --- /dev/null +++ b/app/templates/core/inc/video.html @@ -0,0 +1,16 @@ +{% for video in videos %} + {# video.title #}
+ {# video.open_source_mime_type #}
+ {# video.closed_source_mime_type #}
+ {# video.category #}
+ {# video.media_id #}
+ {# video.open_source_url #}
+ {# video.closed_source_url #}
+ {# video.poster_url #}
+ + +{% endfor %} diff --git a/app/templates/pages/custompage.html b/app/templates/pages/custompage.html index c2674c93..ae934665 100644 --- a/app/templates/pages/custompage.html +++ b/app/templates/pages/custompage.html @@ -58,6 +58,24 @@ {% endblock %} +{% block page_slider %} + {% with page.custompage.images.all|get_type:'page_slider' as slider_images %} + {% if slider_images %} + {% include 'core/inc/slider.html' %} + {% endif %} + {% endwith %} +{% endblock %} + +{% block page_video %} + {% with page.custompage.videos.all as videos %} + {% if videos %} + {% include 'core/inc/video.html' %} + {% endif %} + {% endwith %} +{% endblock %} +{% block page_audio %} +{% endblock %} + {% block page_sub_content %} {% with page.custompage.blocks.all as blocks %} {% include "core/inc/block.html" %} diff --git a/app/templates/pages/departmentpage.html b/app/templates/pages/departmentpage.html index 6f3b242f..16007f80 100644 --- a/app/templates/pages/departmentpage.html +++ b/app/templates/pages/departmentpage.html @@ -58,6 +58,16 @@ {% endwith %} {% endblock %} +{% block page_video %} + {% with page.departmentpage.videos.all as videos %} + {% if videos %} + {% include 'core/inc/video.html' %} + {% endif %} + {% endwith %} +{% endblock %} +{% block page_audio %} +{% endblock %} + {% block page_sub_content %} {% with page.departmentpage.blocks.all as blocks %} {% include "core/inc/block.html" %} diff --git a/app/templates/pages/page.html b/app/templates/pages/page.html index 775c4fad..e4ee8ddc 100644 --- a/app/templates/pages/page.html +++ b/app/templates/pages/page.html @@ -62,6 +62,8 @@ {% block page_slider %} {% endblock %} + {% block page_video %} + {% endblock %} {% block page_sub_content %} {% endblock %} {% block page_related_content %} diff --git a/app/templates/pages/teampage.html b/app/templates/pages/teampage.html index 424e135a..5aeb0648 100644 --- a/app/templates/pages/teampage.html +++ b/app/templates/pages/teampage.html @@ -35,6 +35,16 @@ {% endwith %} {% endblock %} +{% block page_video %} + {% with page.teampage.videos.all as videos %} + {% if videos %} + {% include 'core/inc/video.html' %} + {% endif %} + {% endwith %} +{% endblock %} +{% block page_audio %} +{% endblock %} + {% block page_content %} {% if page.teampage.sub_title %}