Mercurial > libervia-templates
changeset 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 | f19e9f5e43b0 |
children | 102356338118 |
files | default/event/invitation.html |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
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' %}