From 0d5c20bcde2ea84e5fbff2b52d0dc20a320015df Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 3 Oct 2021 13:57:21 +1100 Subject: [PATCH] remove_from_group button updates - enable blocked users to be removed - make "remove" button more subtle --- bookwyrm/templates/snippets/remove_from_group_button.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/snippets/remove_from_group_button.html b/bookwyrm/templates/snippets/remove_from_group_button.html index 938f48b25..05b17b594 100644 --- a/bookwyrm/templates/snippets/remove_from_group_button.html +++ b/bookwyrm/templates/snippets/remove_from_group_button.html @@ -1,16 +1,18 @@ {% load i18n %} {% load bookwyrm_group_tags %} {% if request.user == user or not request.user == group.user or not request.user.is_authenticated %} -{% elif user in request.user.blocks.all %} -{% include 'snippets/block_button.html' with blocks=True %} {% else %} +{% if user in request.user.blocks.all %} +{% include 'snippets/block_button.html' with blocks=True %} +
+{% endif %}
{% csrf_token %} -