Show check-in and check-out times

This commit is contained in:
Edward Betts 2024-05-18 16:53:38 +02:00
parent 455528125c
commit 7e8d156126

View file

@ -153,10 +153,16 @@
{% for day, elements in trip.elements_grouped_by_day() %}
<h4>{{ display_date_no_year(day) }}</h4>
{% for e in elements %}
{% if e.element_type == "check-out" %}
<div>{{ e.get_emoji() }} {{ e.title }} (check-out)</div>
{% elif e.element_type == "check-in" %}
<div>{{ e.get_emoji() }} {{ e.title }} (check-in)</div>
{% if e.element_type == "check-in" %}
<div>
{{ e.get_emoji() }} {{ e.title }}
(check-in from {{ display_time(e.when) }})
</div>
{% elif e.element_type == "check-out" %}
<div>
{{ e.get_emoji() }} {{ e.title }}
(check-out by {{ display_time(e.when) }})
</div>
{% else %}
<div>
{{ e.get_emoji() }}