Improve duration display
This commit is contained in:
parent
dd59c809e1
commit
3ec7f5c18a
2 changed files with 23 additions and 2 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue