Link from conference list to trip pages

This commit is contained in:
Edward Betts 2024-01-14 17:23:50 +00:00
parent 36168843d6
commit 31e8197c79
3 changed files with 19 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% from "macros.html" import display_date_no_year, display_date, conference_row, accommodation_row, flight_row, train_row with context %}
{% from "macros.html" import trip_link, display_date_no_year, display_date, conference_row, accommodation_row, flight_row, train_row with context %}
{% set row = { "flight": flight_row, "train": train_row } %}
@ -57,7 +57,7 @@
{% set end = trip.end %}
<div class="border border-2 rounded mb-2 p-2">
<h3>
<a href="{{ url_for("trip_page", start=trip.start.isoformat()) }}">{{ trip.title }}</a>
{{ trip_link(trip) }}
<small class="text-muted">({{ display_date(trip.start) }})</small></h3>
<div>Countries: {{ trip.countries_str }}</div>
{% if end %}