Add holiday page
Page showing holidays in countries of interest, just in English for now.
This commit is contained in:
parent
69e10db8ef
commit
322b65237d
3 changed files with 36 additions and 1 deletions
18
templates/holiday_list.html
Normal file
18
templates/holiday_list.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{% extends "base.html" %}
|
||||
{% from "macros.html" import display_date %}
|
||||
|
||||
{% 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>
|
||||
<td class="text-end">{{ display_date(item.date) }}</td>
|
||||
<td>{{ country.flag }} {{ country.name }}</td>
|
||||
<td>{{ item.name }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue