Show end times for travel

This commit is contained in:
Edward Betts 2024-05-27 10:57:46 +02:00
parent 38f2e10c6d
commit 75242c2952
3 changed files with 31 additions and 13 deletions

View file

@ -111,14 +111,18 @@
{% set c = get_country(e.detail.country) %}
<div>
{{ e.get_emoji() }} {{ e.title }} {{ c.flag }}
({{ accommodation_label[e.element_type] }} {{ display_time(e.when) }})
({{ accommodation_label[e.element_type] }} {{ display_time(e.start_time) }})
</div>
{% else %}
<div>
{{ e.get_emoji() }}
{{ display_time(e.when) }}
{{ display_time(e.start_time) }}
&ndash;
{{ e.title }}
{{ e.start_loc }}
{{ display_time(e.end_time) }}
&ndash;
{{ e.end_loc }}
{% if e.element_type == "flight" %}
<span class="text-nowrap"><strong>airline:</strong> {{ e.detail.airline_name }}</span>
<span class="text-nowrap"><strong>flight number:</strong> {{ e.detail.airline }}{{ e.detail.flight_number }}</span>