summaryrefslogtreecommitdiff
path: root/template/calendar_head.j2
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-04-05 15:56:31 -0300
committerChristian Franke <nobody@nowhere.ws>2016-04-05 15:56:31 -0300
commit1a1af084931f8e056e951389ca0c414401ba7b94 (patch)
tree9aef9c4888a8a73168b66d6441f20ec477fd350b /template/calendar_head.j2
parentf1f4193f8b8607084c0ac56a7ecffe2b56e8a68e (diff)
Show one weeks worth of events on landing page
Diffstat (limited to 'template/calendar_head.j2')
-rw-r--r--template/calendar_head.j28
1 files changed, 2 insertions, 6 deletions
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 @@
<div class="calendar-listing {{ class }}">
-{%- 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 %}
</div>