diff --git a/templates/macros.html b/templates/macros.html index bab1665..6db2d87 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -91,7 +91,14 @@ {% endmacro %} {% macro flight_booking_row(booking) %} -
{{ booking.booking_reference or "reference missing" }}
+
+ {% if g.user.is_authenticated %} + {{ booking.booking_reference or "reference missing" }} + {% else %} + redacted + {% endif %} +
+
{% if g.user.is_authenticated and booking.price and booking.currency %} {{ "{:,f}".format(booking.price) }} {{ booking.currency }}