From 51ada6267b96eca3c8dd88b4a02fb489aaf48de9 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Wed, 30 Mar 2016 11:12:30 +0200 Subject: [PATCH] Add range of date in full-picture --- .../templates/sections/full-picture.html | 17 +++++++++++------ .../templates/sections/full-picture.html | 11 ++++++++--- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/prosopopee/themes/exposure/templates/sections/full-picture.html b/prosopopee/themes/exposure/templates/sections/full-picture.html index 48eb774..7cbfbd3 100644 --- a/prosopopee/themes/exposure/templates/sections/full-picture.html +++ b/prosopopee/themes/exposure/templates/sections/full-picture.html @@ -2,12 +2,17 @@ {{ image.copy() }}
{% if section.text %} -
-
-

{{ section.text.title }}

-

{{ section.text.sub_title }}

- {% if section.text.date %}
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %} -
+
+
+

{{ section.text.title }}

+

{{ section.text.sub_title }}

+ {% if section.text.date_end } +
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
{% endif %} + {% else } + {% if section.text.date %} +
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %} + {% endif %}
+
{% endif %}
diff --git a/prosopopee/themes/material/templates/sections/full-picture.html b/prosopopee/themes/material/templates/sections/full-picture.html index f20537b..7fc1961 100644 --- a/prosopopee/themes/material/templates/sections/full-picture.html +++ b/prosopopee/themes/material/templates/sections/full-picture.html @@ -4,9 +4,14 @@
{% if section.text %}
-

{{ section.text.title }}

-

{{ section.text.sub_title }}

- {% if section.text.date %}
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %} +

{{ section.text.title }}

+

{{ section.text.sub_title }}

+ {% if section.text.date_end } +
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
{% endif %} + {% else } + {% if section.text.date %} +
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %} + {% endif %}
{% endif %}