From: Emilie Date: Mon, 13 Feb 2017 11:00:16 +0000 (+0100) Subject: [Event] : add archives X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4851c9763f59d02c0d0abee1089160a4a43caf90;p=mezzo.git [Event] : add archives --- diff --git a/app/templates/agenda/event_list.html b/app/templates/agenda/event_list.html index 0e699732..86a1923f 100644 --- a/app/templates/agenda/event_list.html +++ b/app/templates/agenda/event_list.html @@ -33,14 +33,18 @@

{% trans "Events" %}

-
- + {% now "c" as todays_date %}
{% for event in events.object_list %} - {% include 'agenda/includes/event_linecard.html' %} + {% if event.start|date:"c" > todays_date %} + {% include 'agenda/includes/event_linecard.html' %} + {% else %} +

{% trans "Past Events" %}

+ {% include 'agenda/includes/event_linecard.html' %} + {% endif %} {% endfor %}