From 2a8e810ad03db68df848d457b650557298f256ac Mon Sep 17 00:00:00 2001 From: imperosol Date: Mon, 23 Mar 2026 22:25:20 +0100 Subject: [PATCH] always show the show_my_stats input --- core/migrations/0049_user_whitelisted_users.py | 5 ++++- core/models.py | 5 ++++- .../core/fragment/user_visibility.jinja | 2 +- locale/fr/LC_MESSAGES/django.po | 17 +++++++++++------ 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/core/migrations/0049_user_whitelisted_users.py b/core/migrations/0049_user_whitelisted_users.py index d0a269c9..6970caea 100644 --- a/core/migrations/0049_user_whitelisted_users.py +++ b/core/migrations/0049_user_whitelisted_users.py @@ -27,7 +27,10 @@ class Migration(migrations.Migration): name="show_my_stats", field=models.BooleanField( default=False, - help_text="Allow subscribers to access your AE account stats.", + help_text=( + "Allow subscribers (or whitelisted users " + "if your profile is hidden) to access your AE account stats." + ), verbose_name="show your stats to others", ), ), diff --git a/core/models.py b/core/models.py index 287e2f6c..0f0ef10e 100644 --- a/core/models.py +++ b/core/models.py @@ -781,7 +781,10 @@ class Preferences(models.Model): receive_weekmail = models.BooleanField(_("receive the Weekmail"), default=False) show_my_stats = models.BooleanField( _("show your stats to others"), - help_text=_("Allow subscribers to access your AE account stats."), + help_text=_( + "Allow subscribers (or whitelisted users " + "if your profile is hidden) to access your AE account stats." + ), default=False, ) notify_on_click = models.BooleanField( diff --git a/core/templates/core/fragment/user_visibility.jinja b/core/templates/core/fragment/user_visibility.jinja index f89720d6..ee78e907 100644 --- a/core/templates/core/fragment/user_visibility.jinja +++ b/core/templates/core/fragment/user_visibility.jinja @@ -21,7 +21,7 @@
{{ form.whitelisted_users.as_field_group() }}
-
+
{{ form.show_my_stats }} {{ form.show_my_stats.label_tag() }} diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index 933aa4f1..32f63042 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-03-14 23:09+0100\n" +"POT-Creation-Date: 2026-03-23 22:21+0100\n" "PO-Revision-Date: 2016-07-18\n" "Last-Translator: Maréchal \n" @@ -1554,10 +1554,11 @@ msgstr "utilisateurs whitelistés" #: core/models.py msgid "" -"Even if this profile is hidden, the users in this list will still be able to see " -"it." +"Even if this profile is hidden, the users in this list will still be able to " +"see it." msgstr "" -"Même si ce profil est caché, les utilisateurs sur cette liste pourront toujours le voir." +"Même si ce profil est caché, les utilisateurs sur cette liste pourront " +"toujours le voir." #: core/models.py msgid "A user with that username already exists" @@ -1616,8 +1617,12 @@ msgid "show your stats to others" msgstr "montrez vos statistiques aux autres" #: core/models.py -msgid "Allow subscribers to access your AE account stats." -msgstr "Autoriser les cotisants à accéder aux statistiques de votre compte AE" +msgid "" +"Allow subscribers (or whitelisted users if your profile is hidden) to access " +"your AE account stats." +msgstr "" +"Autorise les cotisants (ou les personnes whitelistées, si votre profil est " +"caché) à accéder aux statistiques de votre compte AE" #: core/models.py msgid "get a notification for every click"