Only show date if different from previous row
This commit is contained in:
parent
1e9ae2091e
commit
2a1e2429d7
|
@ -8,7 +8,11 @@
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
{% set country = get_country(item.country) %}
|
{% set country = get_country(item.country) %}
|
||||||
<tr>
|
<tr>
|
||||||
|
{% if loop.first or item.date != loop.previtem.date %}
|
||||||
<td class="text-end">{{ display_date(item.date) }}</td>
|
<td class="text-end">{{ display_date(item.date) }}</td>
|
||||||
|
{% else %}
|
||||||
|
<td></td>
|
||||||
|
{% endif %}
|
||||||
<td>{{ country.flag }} {{ country.name }}</td>
|
<td>{{ country.flag }} {{ country.name }}</td>
|
||||||
<td>{{ item.name }}</td>
|
<td>{{ item.name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue