From 7e8d1561261acc5b52b177271d96263c3c43a408 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 18 May 2024 16:53:38 +0200 Subject: [PATCH] Show check-in and check-out times --- templates/trip/list.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/templates/trip/list.html b/templates/trip/list.html index 662c020..18fd6b9 100644 --- a/templates/trip/list.html +++ b/templates/trip/list.html @@ -153,10 +153,16 @@ {% for day, elements in trip.elements_grouped_by_day() %}

{{ display_date_no_year(day) }}

{% for e in elements %} - {% if e.element_type == "check-out" %} -
{{ e.get_emoji() }} {{ e.title }} (check-out)
- {% elif e.element_type == "check-in" %} -
{{ e.get_emoji() }} {{ e.title }} (check-in)
+ {% if e.element_type == "check-in" %} +
+ {{ e.get_emoji() }} {{ e.title }} + (check-in from {{ display_time(e.when) }}) +
+ {% elif e.element_type == "check-out" %} +
+ {{ e.get_emoji() }} {{ e.title }} + (check-out by {{ display_time(e.when) }}) +
{% else %}
{{ e.get_emoji() }}