diff --git a/theme/templates/termine.html b/theme/templates/termine.html index 686cc06..9cca6b3 100644 --- a/theme/templates/termine.html +++ b/theme/templates/termine.html @@ -30,7 +30,7 @@ {# loop over all events that have not started yet #} - {% for t in page.termine if t.enddate >= DATETIME_NOW %} + {% for t in page.termine | selectattr("startdate", ">=", DATETIME_NOW) %} {{ t.startdate | strftime(date_format) }}{% if t.enddate %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime %} {{ t.starttime | strftime(time_format) }}{% endif %}
{{ t.location }}