From 962ad7cbd81e000158b8a296718148053688349c Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 17 Aug 2023 22:30:34 +0200 Subject: show favourite star on home page --- asset-sources/theme.scss | 2 +- fietsboek/static/theme.css | 2 +- 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 @@ {{ track.title | default(track.date, true) }} + {% if request.identity in track.favourees %} + + {% endif %} {% if track.tagged_people %} -- cgit v1.2.3