From acccb41ff055aae3035759bae90af456e151e79b Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 9 Feb 2016 07:31:52 +0100 Subject: [PATCH] [mod] update sections templates for new behavior --- prosopopee/templates/index.html | 4 +++- prosopopee/templates/sections/bordered-picture.html | 7 ++++--- prosopopee/templates/sections/full-picture.html | 5 +++-- prosopopee/templates/sections/panorama.html | 5 +++-- prosopopee/templates/sections/pictures-group.html | 7 ++++--- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/prosopopee/templates/index.html b/prosopopee/templates/index.html index 4869b10..b866c4b 100644 --- a/prosopopee/templates/index.html +++ b/prosopopee/templates/index.html @@ -31,7 +31,9 @@ {% if gallery.date %}{% endif %} - + {% set cover = Image(gallery.cover) %} + {{ cover.copy() }} + {% endfor %} diff --git a/prosopopee/templates/sections/bordered-picture.html b/prosopopee/templates/sections/bordered-picture.html index 6c7ee0c..294c454 100644 --- a/prosopopee/templates/sections/bordered-picture.html +++ b/prosopopee/templates/sections/bordered-picture.html @@ -1,6 +1,7 @@ -{{ helpers.copy_image(section.image) }} +{% set image = Image(section.image) %} +{{ image.copy()}}
- - + +
diff --git a/prosopopee/templates/sections/full-picture.html b/prosopopee/templates/sections/full-picture.html index 79c3e9d..48eb774 100644 --- a/prosopopee/templates/sections/full-picture.html +++ b/prosopopee/templates/sections/full-picture.html @@ -1,5 +1,6 @@ -{{ helpers.copy_image(section.image) }} -
+{% set image = Image(section.image) %} +{{ image.copy() }} +
{% if section.text %}
diff --git a/prosopopee/templates/sections/panorama.html b/prosopopee/templates/sections/panorama.html index 3d260a3..a9e2767 100644 --- a/prosopopee/templates/sections/panorama.html +++ b/prosopopee/templates/sections/panorama.html @@ -1,4 +1,5 @@ -{{ helpers.copy_image(section.image) }} +{% set image = Image(section.image) %} +{{ image.copy() }}
- +
diff --git a/prosopopee/templates/sections/pictures-group.html b/prosopopee/templates/sections/pictures-group.html index acbe708..bc9a282 100644 --- a/prosopopee/templates/sections/pictures-group.html +++ b/prosopopee/templates/sections/pictures-group.html @@ -2,10 +2,11 @@ {% for line in section.images %}
{% for image in line %} - {{ helpers.copy_image(image) }} + {% set image = Image(image) %} + {{ image.copy() }} {% if not loop.last %}