Hide booking reference if not logged in
This commit is contained in:
parent
6d6e416df3
commit
2b822e28a0
|
@ -91,7 +91,14 @@
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro flight_booking_row(booking) %}
|
{% macro flight_booking_row(booking) %}
|
||||||
<div class="grid-item">{{ booking.booking_reference or "reference missing" }}</div>
|
<div class="grid-item">
|
||||||
|
{% if g.user.is_authenticated %}
|
||||||
|
{{ booking.booking_reference or "reference missing" }}
|
||||||
|
{% else %}
|
||||||
|
<em>redacted</em>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="grid-item text-end">
|
<div class="grid-item text-end">
|
||||||
{% if g.user.is_authenticated and booking.price and booking.currency %}
|
{% if g.user.is_authenticated and booking.price and booking.currency %}
|
||||||
<span class="badge bg-info text-nowrap">{{ "{:,f}".format(booking.price) }} {{ booking.currency }}</span>
|
<span class="badge bg-info text-nowrap">{{ "{:,f}".format(booking.price) }} {{ booking.currency }}</span>
|
||||||
|
|
Loading…
Reference in a new issue