Update template

This commit is contained in:
Edward Betts 2024-04-16 12:12:19 +01:00
parent ab60721e15
commit dce8fde29a

View file

@ -248,23 +248,22 @@
<div class="mt-3"> <div class="mt-3">
<h4>Holidays</h4> <h4>Holidays</h4>
{% if holidays %} {% if holidays %}
<table class="table table-hover w-auto">
<table class="table table-hover w-auto"> {% for item in holidays %}
{% for item in holidays %} {% set country = get_country(item.country) %}
{% set country = get_country(item.country) %} <tr>
<tr> {% if loop.first or item.date != loop.previtem.date %}
{% 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 %}
{% else %} <td></td>
<td></td> {% endif %}
{% endif %} <td>{{ country.flag }} {{ country.name }}</td>
<td>{{ country.flag }} {{ country.name }}</td> <td>{{ item.display_name }}</td>
<td>{{ item.display_name }}</td> </tr>
</tr> {% endfor %}
{% endfor %} </table>
</table>
{% else %} {% else %}
<p>No public holidays during trip.</p> <p>No public holidays during trip.</p>
{% endif %} {% endif %}
</div> </div>