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 %}