diff options
-rw-r--r-- | asset-sources/theme.scss | 2 | ||||
-rw-r--r-- | fietsboek/static/theme.css | 2 | ||||
-rw-r--r-- | fietsboek/templates/home.jinja2 | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/asset-sources/theme.scss b/asset-sources/theme.scss index 864be83..7195856 100644 --- a/asset-sources/theme.scss +++ b/asset-sources/theme.scss @@ -118,7 +118,7 @@ strong { } } -.favourite-star { +.favourite-star, .favourite-star-ni { color: orange; } diff --git a/fietsboek/static/theme.css b/fietsboek/static/theme.css index 39426c5..bbb93a0 100644 --- a/fietsboek/static/theme.css +++ b/fietsboek/static/theme.css @@ -112,7 +112,7 @@ strong { padding-left: 1em; } -.favourite-star { +.favourite-star, .favourite-star-ni { color: orange; } diff --git a/fietsboek/templates/home.jinja2 b/fietsboek/templates/home.jinja2 index 383e90a..d3725ca 100644 --- a/fietsboek/templates/home.jinja2 +++ b/fietsboek/templates/home.jinja2 @@ -44,6 +44,9 @@ <a href="{{ request.route_url('details', track_id=track.id) }}" data-bs-toggle="tooltip" data-bs-container="body" data-bs-html="true" title="{{ track.html_tooltip(request.localizer) }}"> {{ track.title | default(track.date, true) }} </a> + {% if request.identity in track.favourees %} + <i class="bi bi-star-fill favourite-star-ni"></i> + {% endif %} <span class="float-end"> {% if track.tagged_people %} <span data-bs-toggle="tooltip" data-bs-container="body" data-bs-html="true" title="{{ track.html_tooltip_tagged_people() }}"> |