From 8e2c0e857cdb0e33ae9beebed5e28197bf837880 Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 31 Dec 2024 13:48:44 +0100 Subject: [PATCH] feat: Show subscribe/unsubscribe button depending on the user having this search already subscribed --- .../templates/fellchensammlung/search.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/search.html b/src/fellchensammlung/templates/fellchensammlung/search.html index bd4b19c..5070e8c 100644 --- a/src/fellchensammlung/templates/fellchensammlung/search.html +++ b/src/fellchensammlung/templates/fellchensammlung/search.html @@ -13,9 +13,15 @@ {% trans 'Suchen' %} {% if searched %} - + {% if not user_is_subscribed_to_search %} + + {% else %} + + {% endif %} {% endif %} {% if place_not_found %}