From 2a1e2429d7c6f538df7318880bc2754d30c2137a Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 16 Jan 2024 14:23:31 +0000 Subject: [PATCH] Only show date if different from previous row --- templates/holiday_list.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/holiday_list.html b/templates/holiday_list.html index 742dd60..9968e9f 100644 --- a/templates/holiday_list.html +++ b/templates/holiday_list.html @@ -8,7 +8,11 @@ {% for item in items %} {% set country = get_country(item.country) %} - {{ display_date(item.date) }} + {% if loop.first or item.date != loop.previtem.date %} + {{ display_date(item.date) }} + {% else %} + + {% endif %} {{ country.flag }} {{ country.name }} {{ item.name }}