Different sort order on talk pages
This commit is contained in:
parent
87e3cd13a3
commit
0187f273ed
|
@ -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') }}
|
||||
|
|
|
@ -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 } %}
|
||||
|
|
Reference in a new issue