From ade69893004304c02feb5a2ca0f140e09ceb5d5f Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 2 Jun 2024 19:01:18 +0100 Subject: [PATCH] Show links to flight data web sites --- templates/trip/list.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/trip/list.html b/templates/trip/list.html index eb0900b..f7a0580 100644 --- a/templates/trip/list.html +++ b/templates/trip/list.html @@ -124,6 +124,8 @@ – {{ e.end_loc }} {{ e.end_country.flag }} {% if e.element_type == "flight" %} + {% set full_flight_number = e.detail.airline + e.detail.flight_number %} + {% set radarbox_url = "https://www.radarbox.com/data/flights/" + full_flight_number %} airline: {{ e.detail.airline_name }} flight number: {{ e.detail.airline }}{{ e.detail.flight_number }} {% if e.detail.duration %} @@ -134,6 +136,11 @@ {% if e.detail.distance %} distance: {{ format_distance(e.detail.distance) }} {% endif %} + {% if e.element_type == "flight" %} + flightradar24 + | FlightAware + | radarbox + {% endif %} {% endif %} {% endfor %}