feat: Show subscribe/unsubscribe button depending on the user having this search already subscribed
This commit is contained in:
parent
3c7dcb4c51
commit
8e2c0e857c
@ -13,9 +13,15 @@
|
|||||||
<i class="fas fa-search"></i> {% trans 'Suchen' %}
|
<i class="fas fa-search"></i> {% trans 'Suchen' %}
|
||||||
</button>
|
</button>
|
||||||
{% if searched %}
|
{% if searched %}
|
||||||
<button class="btn" type="submit" name="subscribe_to_search">
|
{% if not user_is_subscribed_to_search %}
|
||||||
<i class="fas fa-bell"></i> {% trans 'Suche abonnieren' %}
|
<button class="btn" type="submit" name="subscribe_to_search">
|
||||||
</button>
|
<i class="fas fa-bell"></i> {% trans 'Suche abonnieren' %}
|
||||||
|
</button>
|
||||||
|
{% else %}
|
||||||
|
<button class="btn" type="submit" name="unsubscribe_to_search">
|
||||||
|
<i class="fas fa-bell-slash"></i> {% trans 'Suche nicht mehr abonnieren' %}
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
{% if place_not_found %}
|
{% if place_not_found %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user