2024-01-16 12:06:46 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% from "macros.html" import display_date %}
|
2024-04-16 22:01:16 +01:00
|
|
|
{% block title %}Holidays - Edward Betts{% endblock %}
|
2024-01-16 12:06:46 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container-fluid mt-2">
|
|
|
|
<h1>Holidays</h1>
|
|
|
|
<table class="table table-hover w-auto">
|
|
|
|
{% for item in items %}
|
|
|
|
{% set country = get_country(item.country) %}
|
|
|
|
<tr>
|
2024-01-16 14:23:31 +00:00
|
|
|
{% if loop.first or item.date != loop.previtem.date %}
|
|
|
|
<td class="text-end">{{ display_date(item.date) }}</td>
|
2024-01-19 20:47:03 +00:00
|
|
|
<td>in {{ (item.date - today).days }} days</td>
|
2024-01-16 14:23:31 +00:00
|
|
|
{% else %}
|
2024-01-19 20:47:03 +00:00
|
|
|
<td colspan="2"></td>
|
2024-01-16 14:23:31 +00:00
|
|
|
{% endif %}
|
2024-01-16 12:06:46 +00:00
|
|
|
<td>{{ country.flag }} {{ country.name }}</td>
|
2024-01-16 16:22:04 +00:00
|
|
|
<td>{{ item.display_name }}</td>
|
2024-01-16 12:06:46 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|