From 2299b61e79a17fefd4720af8b65a73e19def6b55 Mon Sep 17 00:00:00 2001 From: Mahmoud-Emad Date: Thu, 29 May 2025 14:17:48 +0300 Subject: [PATCH] feat: Enhance calendar display of all-day events - Improve display of all-day events by adding a message indicating when there are no all-day events scheduled. - Add visual improvements to all-day event display using bootstrap classes. - Clarify messaging when there are no events scheduled for a given day. --- actix_mvc_app/src/views/calendar/index.html | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/actix_mvc_app/src/views/calendar/index.html b/actix_mvc_app/src/views/calendar/index.html index 244c1ba..0b28aea 100644 --- a/actix_mvc_app/src/views/calendar/index.html +++ b/actix_mvc_app/src/views/calendar/index.html @@ -199,17 +199,24 @@
{% if events is defined and events|length > 0 %} + {% set has_all_day_events = false %} {% for event in events %} {% if event.all_day %} -
-
{{ event.title }}
-

{{ event.description }}

+
{{ event.title }}
+ {% if event.description %} +

{{ event.description }}

+ {% endif %}
{% endif %} {% endfor %} + {% if not has_all_day_events %} +

No all-day events for this date

+ {% endif %} {% else %} -

No all-day events

+

No events for this date

{% endif %}
@@ -226,7 +233,7 @@ {% for event in events %} {% if not event.all_day %} {% set start_hour = event.start_time|extract_hour %} - {% if start_hour == hour|string %} + {% if start_hour == hour %}
{{ event.title }}