Adds set reading goal display control in user settings

This commit is contained in:
Mouse Reeve 2021-03-18 09:05:18 -07:00
parent baee0796cd
commit 91aaf704f5
2 changed files with 7 additions and 1 deletions

View file

@ -115,7 +115,7 @@ class StatusForm(CustomForm):
class EditUserForm(CustomForm):
class Meta:
model = models.User
fields = ["avatar", "name", "email", "summary", "manually_approves_followers"]
fields = ["avatar", "name", "email", "summary", "manually_approves_followers", "show_goal"]
help_texts = {f: None for f in fields}

View file

@ -41,6 +41,12 @@
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
</div>
<div class="block">
<label class="checkbox label" for="id_show_goal">
{% trans "Show set reading goal prompt in feed:" %}
{{ form.show_goal }}
</label>
</div>
<div class="block">
<label class="checkbox label" for="id_manually_approves_followers">
{% trans "Manually approve followers:" %}