From 1f3934855deba2c97b35e8e6920eaacf1a567c81 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 1 Nov 2016 12:32:58 +0100 Subject: [PATCH] [mod] simplify template --- .../templates/sections/bordered-picture.html | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/prosopopee/themes/exposure/templates/sections/bordered-picture.html b/prosopopee/themes/exposure/templates/sections/bordered-picture.html index d81f97d..0f914af 100644 --- a/prosopopee/themes/exposure/templates/sections/bordered-picture.html +++ b/prosopopee/themes/exposure/templates/sections/bordered-picture.html @@ -1,18 +1,11 @@ -{% if section.image.type == "video" %} - {% set video = Video(section.image) %} - {% set caption = section.text %} - {{ video.copy() }} -{% else %} - {% set image = Image(section.image) %} - {% set caption = section.text %} - {{ image.copy() }} -{% endif %} - {% if section.background %}
{% endif %} -{% if video %} +{% if section.image.type == "video" %} + {% set video = Video(section.image) %} + {% set caption = section.text %} + {{ video.copy() }}
@@ -27,6 +20,9 @@
{% else %} + {% set image = Image(section.image) %} + {% set caption = section.text %} + {{ image.copy() }}