From c357d732b1ecfb7e664a0a1e5901de96c885d1f1 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sun, 25 Sep 2022 20:25:31 +0200 Subject: hide tags if none are set This prevents the empty "Tagged as:" to be shown --- fietsboek/templates/details.jinja2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fietsboek/templates/details.jinja2 b/fietsboek/templates/details.jinja2 index aae3863..2ff492c 100644 --- a/fietsboek/templates/details.jinja2 +++ b/fietsboek/templates/details.jinja2 @@ -65,9 +65,11 @@ {% endif %} + {% if track.tags %}

{{ _("page.details.tags") }}: {% for tag in track.tags %}{{ tag.tag }} {% endfor %}

+ {% endif %} {% if 'secret' in request.GET %} {% set gpx_url = request.route_path('gpx', track_id=track.id, _query=[('secret', request.GET['secret'])]) %} -- cgit v1.2.3