Show number of days between trips
This commit is contained in:
parent
fbee775f5b
commit
e86bd69ddb
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue