Show number of days between trips

This commit is contained in:
Edward Betts 2024-01-14 12:35:15 +00:00
parent fbee775f5b
commit e86bd69ddb

View file

@ -78,8 +78,12 @@
</div>
<p>
{% 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 %}
</p>
{% if coordinates %}