Different sort order on talk pages

This commit is contained in:
Oliver Davies 2017-03-06 08:36:59 +00:00
parent 87e3cd13a3
commit 0187f273ed
2 changed files with 3 additions and 2 deletions

View file

@ -7,7 +7,8 @@
</tr>
</thead>
<tbody>
{% for event in events|sortbyfield('date')|reverse %}
{% set events = reverse_order ? events|sortbyfield('date')|reverse : events|sortbyfield('date') %}
{% for event in events %}
<tr>
<td>
{{ event.date|date('j F Y') }}

View file

@ -20,4 +20,4 @@ use: [talks, posts]
{% endfor %}
{% endfor %}
{% include "talks-table" with { events: events, show_talk: true } %}
{% include "talks-table" with { events: events, show_talk: true, reverse_order: true } %}