From f60a1a329c4cbea6b628848e8778c66eaf6a77e0 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 14 Jan 2024 18:16:20 +0000 Subject: [PATCH] Link to more flight info sites --- templates/macros.html | 12 ++++++++---- templates/travel.html | 6 ++++-- templates/trip_list.html | 2 +- templates/trip_page.html | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/templates/macros.html b/templates/macros.html index cd331cd..a4dec45 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -73,7 +73,7 @@ {% macro flight_row(item) %} {% set full_flight_number = item.airline + item.flight_number %} - {% set url = "https://www.radarbox.com/data/flights/" + full_flight_number %} + {% set radarbox_url = "https://www.radarbox.com/data/flights/" + full_flight_number %}
{{ item.depart.strftime("%a, %d %b %Y") }}
{{ item.from }} → {{ item.to }}
{{ item.depart.strftime("%H:%M") }}
@@ -84,10 +84,13 @@ {% endif %}
{{ item.duration }}
-
- {{ full_flight_number }} -
+
{{ full_flight_number }}
{{ item.booking_reference }}
+
+ flightradar24 + | FlightAware + | radarbox +
{% endmacro %} {% macro train_row(item) %} @@ -103,4 +106,5 @@
{{ ((item.arrive - item.depart).total_seconds() // 60) | int }} mins
{{ item.operator }}
{{ item.booking_reference }}
+
{% endmacro %} diff --git a/templates/travel.html b/templates/travel.html index a762ebb..e0d8161 100644 --- a/templates/travel.html +++ b/templates/travel.html @@ -5,14 +5,14 @@