diff default/event/invitation.html @ 50:d8729eb9edb5

events (invitation): indicate when the event is finished
author Goffi <goffi@goffi.org>
date Fri, 27 Oct 2017 18:51:53 +0200
parents 24af9089aacd
children
line wrap: on
line diff
--- a/default/event/invitation.html	Fri Oct 27 18:50:19 2017 +0200
+++ b/default/event/invitation.html	Fri Oct 27 18:51:53 2017 +0200
@@ -10,7 +10,12 @@
 </div>
 
 {% if days_left is defined %}
-    <div id="event_counter" class="box">{% trans %}{{days_left}} days left{% endtrans %}</div>
+    {% if days_left > 0 %}
+        <div id="event_counter" class="box">{% trans %}{{days_left}} days left{% endtrans %}</div>
+    {% else %}
+        <div id="event_counter" class="box">{% trans %}the event is finished{% endtrans %}</div>
+    {% endif %}
+
 {% endif %}
 
 {% include 'event/attendance.html' %}