From f49b0ce732ab33d6a92c0bca03d21a77f03ec9ee Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 1 Jan 2024 00:43:24 +0000 Subject: [PATCH] Improve end time display --- templates/index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index fdc2336..2dcf2c8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -171,8 +171,13 @@
- {% if event.end_date and event.end_as_date != event.as_date %} - {{event.end_date}} + {% if event.end_date %} + {% if event.end_as_date == event.as_date and event.has_time %} + end: {{event.end_date.strftime("%H:%M") }} + (duration: {{event.end_date - event.date}}) + {% elif event.end_date != event.date %} + {{event.end_date}} + {% endif %} {% endif %}