summaryrefslogtreecommitdiff
path: root/template/calendar_head.j2
diff options
context:
space:
mode:
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>