Show check-in and check-out times
This commit is contained in:
parent
455528125c
commit
7e8d156126
|
@ -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() }}
|
||||
|
|
Loading…
Reference in a new issue