From 18f8da4d0a2b38f985e235580acd573da87fdb46 Mon Sep 17 00:00:00 2001 From: rra Date: Tue, 26 Mar 2024 23:17:10 +0100 Subject: [PATCH] community edit and moderation are now visually a single screen; community delete button moved to settings --- .../community/_community_moderation_nav.html | 12 ++++++++++-- app/templates/community/community.html | 10 +++------- app/templates/community/community_delete.html | 2 ++ app/templates/community/community_edit.html | 12 +++++++++--- app/templates/community/community_mod_list.html | 2 ++ app/templates/community/community_moderate.html | 6 +++--- .../community/community_moderate_banned.html | 7 ++++--- 7 files changed, 33 insertions(+), 18 deletions(-) diff --git a/app/templates/community/_community_moderation_nav.html b/app/templates/community/_community_moderation_nav.html index 51dea95d..12a54047 100644 --- a/app/templates/community/_community_moderation_nav.html +++ b/app/templates/community/_community_moderation_nav.html @@ -1,14 +1,22 @@
+{% if community.is_owner() or current_user.is_admin() %} + + {{ _('Settings') }} + + + {{ _('Moderators') }} + +{% endif %} {{ _('Reports') }} {{ _('Banned people') }} - + {{ _('Appeals') }} - + {{ _('Mod log') }}
\ No newline at end of file diff --git a/app/templates/community/community.html b/app/templates/community/community.html index 24252648..712758bf 100644 --- a/app/templates/community/community.html +++ b/app/templates/community/community.html @@ -175,14 +175,10 @@

{{ _('Community Settings') }}

- {% if is_moderator or is_owner or is_admin %} -

{{ _('Moderate') }}

- {% endif %} {% if is_owner or is_admin %} -

{{ _('Settings') }}

- {% endif %} - {% if community.is_local() and (community.is_owner() or current_user.is_admin()) %} -

Delete community

+

{{ _('Settings & Moderation') }}

+ {% elif is_moderator %} +

{{ _('Moderation') }}

{% endif %}
diff --git a/app/templates/community/community_delete.html b/app/templates/community/community_delete.html index 28e1bf91..486ee070 100644 --- a/app/templates/community/community_delete.html +++ b/app/templates/community/community_delete.html @@ -12,7 +12,9 @@
{{ _('Delete "%(community_title)s"', community_title=community.title) }}
+

Are you sure you want to delete this community? This is irreversible and will delete all posts and comments associated with it.

{{ render_form(form) }} + Go back
diff --git a/app/templates/community/community_edit.html b/app/templates/community/community_edit.html index 6bf3744e..9e3bc21b 100644 --- a/app/templates/community/community_edit.html +++ b/app/templates/community/community_edit.html @@ -15,13 +15,17 @@ + {% if community %} + {% include "community/_community_moderation_nav.html" %} + {% endif %}

{% if community %} - {{ _('Edit community') }} + {{ _('Edit %(community)s', community=community.display_name()) }} {% else %} {{ _('Create community') }} {% endif %}

+

{{ _('Edit and configure this community') }}

{{ form.csrf_token() }} {{ render_field(form.title) }} @@ -48,10 +52,12 @@ {{ render_field(form.submit) }} + {% if community.is_local() and (community.is_owner() or current_user.is_admin()) %} +

Delete community

+ {% endif %} +
diff --git a/app/templates/community/community_mod_list.html b/app/templates/community/community_mod_list.html index fcb13f22..16e306a6 100644 --- a/app/templates/community/community_mod_list.html +++ b/app/templates/community/community_mod_list.html @@ -16,10 +16,12 @@ + {% include "community/_community_moderation_nav.html" %}

{{ _('Moderators for %(community)s', community=community.display_name()) }}

+

{{ _('See and change who moderates this community') }}

diff --git a/app/templates/community/community_moderate.html b/app/templates/community/community_moderate.html index df481696..881c9618 100644 --- a/app/templates/community/community_moderate.html +++ b/app/templates/community/community_moderate.html @@ -15,16 +15,16 @@ + {% include "community/_community_moderation_nav.html" %}
-

{{ _('Moderation of %(community)s', community=community.display_name()) }}

+

{{ _('Reports') }}

- {% include "community/_community_moderation_nav.html" %} -

{{ _('Reports') }}

+

{{ _('See and handle all reports made about %(community)s', community=community.display_name()) }}

{% if reports.items %}
diff --git a/app/templates/community/community_moderate_banned.html b/app/templates/community/community_moderate_banned.html index 96505f46..74a5b200 100644 --- a/app/templates/community/community_moderate_banned.html +++ b/app/templates/community/community_moderate_banned.html @@ -15,16 +15,17 @@ + {% include "community/_community_moderation_nav.html" %}
-

{{ _('Moderation of %(community)s', community=community.display_name()) }}

+

{{ _('Banned people') }}

- {% include "community/_community_moderation_nav.html" %} -

{{ _('Banned people') }}

+

{{ _('See and manage who is banned from %(community)s', community=community.display_name()) }}

+

{% if banned_people %}