From 8504a3a02210310ede813a656fae93daf2122a04 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 10 Jan 2024 13:26:59 +0000 Subject: [PATCH] Add radarbox.com links for flights --- templates/macros.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/macros.html b/templates/macros.html index a9d7364..f7926e6 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -68,6 +68,8 @@ {% endmacro %} {% macro flight_row(item) %} + {% set full_flight_number = item.airline + item.flight_number %} + {% set 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") }}
@@ -78,7 +80,9 @@ {% endif %}
{{ item.duration }}
-
{{ item.airline }}{{ item.flight_number }}
+
+ {{ full_flight_number }} +
{{ item.booking_reference }}
{% endmacro %}