diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-08-17 22:30:34 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-08-17 22:30:34 +0200 |
commit | 962ad7cbd81e000158b8a296718148053688349c (patch) | |
tree | 439246344c47c06b0ed9c573c2eda0db11173900 | |
parent | a59672b41d6d3f3008019ce774dcd3b46ecdd419 (diff) | |
download | fietsboek-962ad7cbd81e000158b8a296718148053688349c.tar.gz fietsboek-962ad7cbd81e000158b8a296718148053688349c.tar.bz2 fietsboek-962ad7cbd81e000158b8a296718148053688349c.zip |
show favourite star on home page
-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() }}"> |