Show current trip on home page

This commit is contained in:
Edward Betts 2024-08-11 12:50:58 +02:00
parent 6e9604e4c1
commit 259642ff52
2 changed files with 28 additions and 0 deletions

View file

@ -39,6 +39,7 @@
} %}
{% from "macros.html" import trip_link, display_date_no_year with context %}
{% from "navbar.html" import navbar with context %}
<body>
@ -79,6 +80,19 @@
<p>{{ market }}</p>
{% endfor %}
{% if current_trip %}
{% set end = current_trip.end %}
<div>
<div>Current trip: {{ trip_link(current_trip) }}</div>
{% if end %}
<div>Dates: {{ display_date_no_year(current_trip.start) }} to {{ display_date_no_year(end) }}</div>
{% else %}
<div>Start: {{ display_date_no_year(current_trip.start) }} (end date missing)</div>
{% endif %}
</div>
{% endif %}
<h3>Agenda</h3>
<div>