From e86bd69ddb702abe716e184f60e2e3f7e612f1b9 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 14 Jan 2024 12:35:15 +0000 Subject: [PATCH] Show number of days between trips --- templates/trip_page.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/trip_page.html b/templates/trip_page.html index 45d4ec1..389831a 100644 --- a/templates/trip_page.html +++ b/templates/trip_page.html @@ -78,8 +78,12 @@

- {% if prev_trip %}previous: {{ trip_link(prev_trip) }}{% endif %} - {% if next_trip %}next: {{ trip_link(next_trip) }}{% endif %} + {% if prev_trip %} + previous: {{ trip_link(prev_trip) }} ({{ (trip.start - prev_trip.end).days }} days) + {% endif %} + {% if next_trip %} + next: {{ trip_link(next_trip) }} ({{ (next_trip.start - trip.end).days }} days) + {% endif %}

{% if coordinates %}