From 19c7e43f50decbd848fc307be39a71aeb496a423 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Fri, 22 Oct 2021 18:40:55 +1100 Subject: [PATCH] remove followers privacy option from group form --- bookwyrm/templates/groups/form.html | 2 +- .../snippets/privacy_select_no_followers.html | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 bookwyrm/templates/snippets/privacy_select_no_followers.html diff --git a/bookwyrm/templates/groups/form.html b/bookwyrm/templates/groups/form.html index c1281172..949a6e96 100644 --- a/bookwyrm/templates/groups/form.html +++ b/bookwyrm/templates/groups/form.html @@ -19,7 +19,7 @@
- {% include 'snippets/privacy_select.html' with current=group.privacy %} + {% include 'snippets/privacy_select_no_followers.html' with current=group.privacy %}
diff --git a/bookwyrm/templates/snippets/privacy_select_no_followers.html b/bookwyrm/templates/snippets/privacy_select_no_followers.html new file mode 100644 index 00000000..2c601e7f --- /dev/null +++ b/bookwyrm/templates/snippets/privacy_select_no_followers.html @@ -0,0 +1,21 @@ +{% load i18n %} +{% load utilities %} +
+ {% firstof privacy_uuid 0|uuid as uuid %} + {% if not no_label %} + + {% endif %} + {% firstof current user.default_post_privacy "public" as privacy %} + +
+