mirror of
https://github.com/ae-utbm/sith.git
synced 2026-03-24 20:45:04 +00:00
always show the show_my_stats input
This commit is contained in:
@@ -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",
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<fieldset class="form-group" x-show="!isViewable">
|
||||
{{ form.whitelisted_users.as_field_group() }}
|
||||
</fieldset>
|
||||
<fieldset class="form-group" x-show="isViewable">
|
||||
<fieldset class="form-group">
|
||||
{{ form.show_my_stats }}
|
||||
{{ form.show_my_stats.label_tag() }}
|
||||
<span class="helptext">
|
||||
|
||||
Reference in New Issue
Block a user