From 7208e10cb2b4266f98df2fbeb0ed2b74f28fc56e Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 2 Apr 2024 10:37:06 +0100 Subject: [PATCH] Hide booking URLs if not logged in --- templates/macros.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/macros.html b/templates/macros.html index d0cd0ab..d1d42a8 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -64,7 +64,7 @@ {% endif %}
- {% if item.url %} + {% if g.user.is_authenticated and item.url %} {{ item.name }} {% else %} {{ item.name }} @@ -104,9 +104,9 @@ {% set url = item.url %}
{{ item.depart.strftime("%a, %d %b %Y") }}
- {% if url %}{% endif %} + {% if g.user.is_authenticated and item.url %}{% endif %} {{ item.from }} → {{ item.to }} - {% if url %}{% endif %} + {% if g.user.is_authenticated and item.url %}{% endif %}
{{ item.depart.strftime("%H:%M") }}