More refactoring

This commit is contained in:
Oliver Davies 2015-08-10 23:28:33 +01:00
parent 0fbc6b10dc
commit 276814ec47

View file

@ -27,13 +27,15 @@
{% if start %}
{% if start|date('U') > now %}
{% set text = text ~ ' starting ' ~ start|date('F Y') %}
{% endif %}
{% if end %}
{% set text = text ~ ', until ' ~ end|date('F Y') %}
{% if end %}
{% set text = text ~ ',' %}
{% endif %}
{% endif %}
{% elseif end %}
{% set text = text ~ ', until ' ~ end|date('F Y') %}
{% endif %}
{% if end %}
{% set text = text ~ ' until ' ~ end|date('F Y') %}
{% endif %}
<p>{{ text }}.</p>