From 79a440d36b6735cf2afbf220f8cc3ffd58e3bc8a Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 16 Aug 2023 23:06:32 +0200 Subject: add a favourite star to the detail page --- fietsboek/templates/details.jinja2 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/fietsboek/templates/details.jinja2 b/fietsboek/templates/details.jinja2 index b7ebefe..7307270 100644 --- a/fietsboek/templates/details.jinja2 +++ b/fietsboek/templates/details.jinja2 @@ -3,7 +3,18 @@ {% block content %}
-

{{ track.title | default(_("page.details.title"), true) }}

+

+ {{ track.title | default(_("page.details.title"), true) }} + {% if request.identity %} + + {% if request.identity in track.favourees %} + + {% else %} + + {% endif %} + + {% endif %} +

{% if show_edit_link %}