From 19c586c5b2c5a6339fbb51eec78c741793d1eefb Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Mon, 1 May 2023 22:40:53 +1000 Subject: [PATCH] Remove border from months on yearly view and increase spacing, also switch to using css grid --- templates/partials/page/calendar.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/partials/page/calendar.html b/templates/partials/page/calendar.html index 466f851..1508d31 100644 --- a/templates/partials/page/calendar.html +++ b/templates/partials/page/calendar.html @@ -123,20 +123,21 @@ {% elif selected_view == 'year'%}
-
+
{% for i in range(12) %} {% set date = start_date + relativedelta(months=i) %} {% set first_day_of_month = date.replace(day=1) %} {% set last_day_of_month = date + relativedelta(day=31) %} {% set (first_day, last_day) = first_and_last_visible_days_in_month(first_day_of_month, last_day_of_month) %} -
-
+
{{ strftime(first_day_of_month, '%B %Y') }}
-
+
S
M
@@ -165,7 +166,6 @@
- {% endfor %}