From 5a6e11ec800e72daec804d5eb71ac060756da87f Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Wed, 30 Mar 2016 11:23:07 +0200 Subject: [PATCH] fix range --- .../themes/exposure/templates/sections/full-picture.html | 6 +++--- .../themes/material/templates/sections/full-picture.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/prosopopee/themes/exposure/templates/sections/full-picture.html b/prosopopee/themes/exposure/templates/sections/full-picture.html index 7cbfbd3..4bfbf54 100644 --- a/prosopopee/themes/exposure/templates/sections/full-picture.html +++ b/prosopopee/themes/exposure/templates/sections/full-picture.html @@ -6,9 +6,9 @@

{{ 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_end %} +
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
+ {% else %} {% if section.text.date %}
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %} {% endif %} diff --git a/prosopopee/themes/material/templates/sections/full-picture.html b/prosopopee/themes/material/templates/sections/full-picture.html index 7fc1961..65a7afd 100644 --- a/prosopopee/themes/material/templates/sections/full-picture.html +++ b/prosopopee/themes/material/templates/sections/full-picture.html @@ -6,9 +6,9 @@

{{ 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_end %} +
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
+ {% else %} {% if section.text.date %}
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %} {% endif %}