From 10a3253aa82d3fe005a753439dc124cc75fd6bba Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Thu, 26 May 2016 17:03:43 +0200 Subject: [PATCH] fix caption on video --- .../templates/sections/bordered-picture.html | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/prosopopee/themes/exposure/templates/sections/bordered-picture.html b/prosopopee/themes/exposure/templates/sections/bordered-picture.html index 10baca3..c10c479 100644 --- a/prosopopee/themes/exposure/templates/sections/bordered-picture.html +++ b/prosopopee/themes/exposure/templates/sections/bordered-picture.html @@ -1,5 +1,6 @@ {% if section.image.type == "video" %} {% set video = Video(section.image) %} +{% set caption = section.text %} {{ video.copy() }} {% else %} {% set image = Image(section.image) %} @@ -9,16 +10,24 @@ {% if section.background %}
{% endif %} - {% if video %} + {% if video %}
- - - {% else %} +
+ + + {% if caption %} +
+
{{ caption }}
+
+ {% endif %} +
+
+ {% else %}