From cdfff32f9af75730ca560833744433f1dc07067f Mon Sep 17 00:00:00 2001 From: Michael Manfre Date: Tue, 22 Nov 2022 21:52:40 -0500 Subject: Content warning name customisation Allows the name of Content Warning to be customized (e.g. to "Content Summary"). Fixes #28.--- users/views/admin/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'users/views/admin') diff --git a/users/views/admin/settings.py b/users/views/admin/settings.py index 0ed9a60..44a338f 100644 --- a/users/views/admin/settings.py +++ b/users/views/admin/settings.py @@ -37,6 +37,10 @@ class BasicSettings(AdminSettingsPage): "title": "Maximum Post Length", "help_text": "The maximum number of characters allowed per post", }, + "content_warning_text": { + "title": "Content Warning Feature Name", + "help_text": "What the feature that lets users provide post summaries is called", + }, "site_about": { "title": "About This Site", "help_text": "Displayed on the homepage and the about page.\nNewlines are preserved; HTML also allowed.", @@ -87,7 +91,7 @@ class BasicSettings(AdminSettingsPage): "highlight_color", ], "Signups": ["signup_allowed", "signup_invite_only", "signup_text"], - "Posts": ["post_length"], + "Posts": ["post_length", "content_warning_text"], "Identities": [ "identity_max_per_user", "identity_min_length", -- cgit v1.2.3