From bed41e136f3cea42c2940b371cab1e0150272ed3 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 1 Nov 2016 12:19:43 +0100 Subject: [PATCH] [mod] simplify code --- .../exposure/templates/sections/pictures-group.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/prosopopee/themes/exposure/templates/sections/pictures-group.html b/prosopopee/themes/exposure/templates/sections/pictures-group.html index 0085667..96d69a1 100644 --- a/prosopopee/themes/exposure/templates/sections/pictures-group.html +++ b/prosopopee/themes/exposure/templates/sections/pictures-group.html @@ -6,17 +6,11 @@ {% for line in section.images %}
{% for image in line %} +
{% if image.type == "video" %} {% set caption = image.text %} {% set video = Video(image) %} {{ video.copy() }} - {% else %} - {% set caption = image.text %} - {% set image = Image(image) %} - {{ image.copy() }} - {% endif %} -
- {% if video %}
{% endif %} - {% set video = "" %} {% else %} + {% set caption = image.text %} + {% set image = Image(image) %} + {{ image.copy() }}