Compare commits

...

2 commits

Author SHA1 Message Date
Edward Betts f028e40df8 Show trip nights
Closes: #119
2024-01-22 12:47:22 +00:00
Edward Betts b4a79cae69 Add logout link
Closes: #123
2024-01-22 12:46:46 +00:00
2 changed files with 7 additions and 1 deletions

View file

@ -29,6 +29,9 @@
</li>
{% endfor %}
</ul>
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="{{ config.UNIAUTH_URL }}/logout?next={{ request.url | urlencode }}">Logout</a></li>
</ul>
</div>
</div>
</nav>

View file

@ -57,7 +57,10 @@
<h1>{{ trip.title }}<small class="text-muted">({{ display_date(trip.start) }})</small></h1>
<div>Countries: {{ trip.countries_str }}</div>
{% if end %}
<div>Dates: {{ display_date_no_year(trip.start) }} to {{ display_date_no_year(end) }}</div>
<div>
Dates: {{ display_date_no_year(trip.start) }} to {{ display_date_no_year(end) }}
({{ (end - trip.start).days }} nights)
</div>
{% else %}
<div>Start: {{ display_date_no_year(trip.start) }} (end date missing)</div>
{% endif %}