From 71566f5b1738b513de6ad92048df7fa4b9899db5 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 1 Nov 2016 11:39:48 +0100 Subject: [PATCH] [mod] fix indentation --- .../templates/sections/pictures-group.html | 68 ++++++++++--------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/prosopopee/themes/exposure/templates/sections/pictures-group.html b/prosopopee/themes/exposure/templates/sections/pictures-group.html index 09e4ed4..104a093 100644 --- a/prosopopee/themes/exposure/templates/sections/pictures-group.html +++ b/prosopopee/themes/exposure/templates/sections/pictures-group.html @@ -1,49 +1,51 @@ {% if section.background %} -
- {% endif %} -
- {% for line in section.images %} -
- {% for image in line %} - {% if image.type == "video" %} +
+{% endif %} + +
+{% for line in section.images %} +
+ {% for image in line %} + {% if image.type == "video" %} {% set caption = image.text %} {% set video = Video(image) %} {{ video.copy() }} - {% else %} + {% else %} {% set caption = image.text %} {% set image = Image(image) %} {{ image.copy() }} - {% endif %} -
- {% if video %} - - - {% if caption %} + {% endif %} +
+ {% if video %} + + + {% if caption %}
{{ caption }}
- {% endif %} - {% set video = "" %} - {% else %} - - - {% if caption %} + {% endif %} + {% set video = "" %} + {% else %} + + + {% if caption %}
{{ caption }}
- {% endif %} -
{% endif %} -
- {% if not loop.last %} -
- {% endif %} - {% endfor %} + + {% endif %}
- {% endfor %} -
- {% if section.background %} -
+ {% if not loop.last %} +
+ {% endif %} + {% endfor %} +
+{% endfor %} +
+ +{% if section.background %} +
{% endif %}