From 1a1af084931f8e056e951389ca0c414401ba7b94 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 5 Apr 2016 15:56:31 -0300 Subject: Show one weeks worth of events on landing page --- template/calendar_head.j2 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'template') diff --git a/template/calendar_head.j2 b/template/calendar_head.j2 index d8df951..17bc58e 100644 --- a/template/calendar_head.j2 +++ b/template/calendar_head.j2 @@ -1,10 +1,6 @@
-{%- for event in events[:7] %} +{%- for event in events %} +{%- if event.start <= cutoff or not event.recurring %} {% include 'calendar_event.j2' %} {%- endfor %} -{%- for event in events[7:] %} - {% if not event.recurring %} - {% include 'calendar_event.j2' %} - {% endif %} -{%- endfor %}
-- cgit v1.2.1