Only show date if different from previous row

This commit is contained in:
Edward Betts 2024-01-16 14:23:31 +00:00
parent 1e9ae2091e
commit 2a1e2429d7

View file

@ -8,7 +8,11 @@
{% for item in items %}
{% set country = get_country(item.country) %}
<tr>
<td class="text-end">{{ display_date(item.date) }}</td>
{% if loop.first or item.date != loop.previtem.date %}
<td class="text-end">{{ display_date(item.date) }}</td>
{% else %}
<td></td>
{% endif %}
<td>{{ country.flag }} {{ country.name }}</td>
<td>{{ item.name }}</td>
</tr>