Improve duration display

This commit is contained in:
Edward Betts 2024-05-16 16:58:07 +02:00
parent dd59c809e1
commit 3ec7f5c18a
2 changed files with 23 additions and 2 deletions

View file

@ -174,9 +174,10 @@
<div class="col-md-2{{ cell_bg }}">
{% if event.end_date %}
{% if event.end_as_date == event.as_date and event.has_time %}
{% set duration = event.display_duration() %}
{% if duration %}
end: {{event.end_date.strftime("%H:%M") }}
(duration: {{event.end_date - event.date}})
(duration: {{duration}})
{% elif event.end_date != event.date %}
{{event.end_date}}
{% endif %}