changed list comprehension to jinja filter
This commit is contained in:
parent
61748d313c
commit
b8e0903d0d
@ -30,7 +30,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{# 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) %}
|
||||
<tr>
|
||||
<td class="event-info"><strong>{{ t.startdate | strftime(date_format) }}{% if t.enddate %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime %} {{ t.starttime | strftime(time_format) }}{% endif %}</strong><br>{{ t.location }}</td>
|
||||
<td class="event-detail">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user