From 4eeb0036ecd4497d3900f46a7c5371d0e6a0bad6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 23 Aug 2021 20:22:51 +0200 Subject: Add trip detail page --- templates/tripinfo.html | 72 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 templates/tripinfo.html (limited to 'templates/tripinfo.html') diff --git a/templates/tripinfo.html b/templates/tripinfo.html new file mode 100644 index 0000000..bfe46d0 --- /dev/null +++ b/templates/tripinfo.html @@ -0,0 +1,72 @@ +
+ +
+{% if tripinfo.arrival %} +An: +{% if tripinfo.arrivalDelay %} +{{ tripinfo.arrival.strftime('%H:%M') }} +
Plan: {{ tripinfo.plannedArrival.strftime('%H:%M') }} +{% else %} +{{ tripinfo.arrival.strftime('%H:%M') }} +{% endif %} +{% endif %} +
+ +
+{% if tripinfo.platform %} +Steig {{ tripinfo.platform }} +{% else %} +  +{% endif %} +
+ +
+{% if tripinfo.arrival %} +Ab: +{% if tripinfo.departureDelay %} +{{ tripinfo.departure.strftime('%H:%M') }} +
Plan: {{ tripinfo.plannedDeparture.strftime('%H:%M') }} +{% else %} +{{ tripinfo.departure.strftime('%H:%M') }} +{% endif %} +{% endif %} +
+ +
+ +