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 %}