diff --git a/templates/macros.html b/templates/macros.html index 5bdadc5..ff49986 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -96,6 +96,10 @@ {% endmacro %} +{% macro flightradar24_url(flight) -%} +https://www.flightradar24.com/data/flights/{{ flight.airline_detail.iata | lower + flight.flight_number }} +{%- endmacro %} + {% macro flight_booking_row(booking, show_flags=True) %}
{{ e.detail | pprint }}#} - CO₂: {{ "{:,.1f}".format(e.detail.co2_kg) }} kg + {#
{{ flight | pprint }}#} + CO₂: {{ "{:,.1f}".format(flight.co2_kg) }} kg {% endif %} {% if e.detail.distance %} distance: {{ format_distance(e.detail.distance) }} {% endif %} {% if e.element_type == "flight" %} - flightradar24 + flightradar24 | FlightAware | radarbox {% endif %}