From d547ee9db319113c869a10989a23153aab8fabe3 Mon Sep 17 00:00:00 2001 From: reverend Date: Thu, 24 Dec 2020 16:43:14 +0100 Subject: [PATCH] favorite partial --- .../templates/partials/icons/place_favorite.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 django_lostplaces/lostplaces/templates/partials/icons/place_favorite.html diff --git a/django_lostplaces/lostplaces/templates/partials/icons/place_favorite.html b/django_lostplaces/lostplaces/templates/partials/icons/place_favorite.html new file mode 100644 index 0000000..d87ef9e --- /dev/null +++ b/django_lostplaces/lostplaces/templates/partials/icons/place_favorite.html @@ -0,0 +1,14 @@ +{%load static %} +{% load i18n %} + +{% if request.user %} +{% if place in request.user.explorer.favorite_places.all %} + + + +{%else%} + + + +{% endif %} +{% endif %} \ No newline at end of file