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 %}
{% if start|date('U') > now %} {% if start|date('U') > now %}
{% set text = text ~ ' starting ' ~ start|date('F Y') %} {% set text = text ~ ' starting ' ~ start|date('F Y') %}
{% endif %}
{% if end %} {% if end %}
{% set text = text ~ ', until ' ~ end|date('F Y') %} {% set text = text ~ ',' %}
{% endif %}
{% endif %} {% endif %}
{% elseif end %} {% endif %}
{% set text = text ~ ', until ' ~ end|date('F Y') %}
{% if end %}
{% set text = text ~ ' until ' ~ end|date('F Y') %}
{% endif %} {% endif %}
<p>{{ text }}.</p> <p>{{ text }}.</p>