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

View file

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