diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-09-25 20:25:31 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-09-25 20:25:31 +0200 |
commit | c357d732b1ecfb7e664a0a1e5901de96c885d1f1 (patch) | |
tree | dd781a95a58a9dc757ce639d9f3917fb019b0704 | |
parent | 8beb7de6cb474c01302c1adec1a7d6f6202dfbb4 (diff) | |
download | fietsboek-c357d732b1ecfb7e664a0a1e5901de96c885d1f1.tar.gz fietsboek-c357d732b1ecfb7e664a0a1e5901de96c885d1f1.tar.bz2 fietsboek-c357d732b1ecfb7e664a0a1e5901de96c885d1f1.zip |
hide tags if none are set
This prevents the empty "Tagged as:" to be shown
-rw-r--r-- | fietsboek/templates/details.jinja2 | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ </ul> {% endif %} + {% if track.tags %} <p> {{ _("page.details.tags") }}: {% for tag in track.tags %}<span class="badge rounded-pill bg-info text-dark">{{ tag.tag }}</span> {% endfor %} </p> + {% endif %} {% if 'secret' in request.GET %} {% set gpx_url = request.route_path('gpx', track_id=track.id, _query=[('secret', request.GET['secret'])]) %} |