mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-26 01:01:00 +00:00
Move wellness options inside Interface
This commit is contained in:
parent
3187d4d180
commit
f5d06d2656
5 changed files with 8 additions and 25 deletions
|
@ -46,11 +46,6 @@ urlpatterns = [
|
||||||
settings.InterfacePage.as_view(),
|
settings.InterfacePage.as_view(),
|
||||||
name="settings_interface",
|
name="settings_interface",
|
||||||
),
|
),
|
||||||
path(
|
|
||||||
"settings/user/",
|
|
||||||
settings.WellnessPage.as_view(),
|
|
||||||
name="settings_wellness",
|
|
||||||
),
|
|
||||||
path(
|
path(
|
||||||
"admin/",
|
"admin/",
|
||||||
admin.AdminRoot.as_view(),
|
admin.AdminRoot.as_view(),
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
<a href="{% url "settings_interface" %}" {% if section == "interface" %}class="selected"{% endif %} title="Interface">
|
<a href="{% url "settings_interface" %}" {% if section == "interface" %}class="selected"{% endif %} title="Interface">
|
||||||
<i class="fa-solid fa-display"></i> Interface
|
<i class="fa-solid fa-display"></i> Interface
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "settings_wellness" %}" {% if section == "wellness" %}class="selected"{% endif %} title="Wellness">
|
|
||||||
<i class="fa-solid fa-staff-snake"></i> Wellness
|
|
||||||
</a>
|
|
||||||
<h3>Account</h3>
|
<h3>Account</h3>
|
||||||
<a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %} title="Login & Security">
|
<a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %} title="Login & Security">
|
||||||
<i class="fa-solid fa-key"></i> Login & Security
|
<i class="fa-solid fa-key"></i> Login & Security
|
||||||
|
|
|
@ -6,7 +6,6 @@ from users.views.settings.interface import InterfacePage # noqa
|
||||||
from users.views.settings.profile import ProfilePage # noqa
|
from users.views.settings.profile import ProfilePage # noqa
|
||||||
from users.views.settings.security import SecurityPage # noqa
|
from users.views.settings.security import SecurityPage # noqa
|
||||||
from users.views.settings.settings_page import SettingsPage # noqa
|
from users.views.settings.settings_page import SettingsPage # noqa
|
||||||
from users.views.settings.wellness import WellnessPage # noqa
|
|
||||||
|
|
||||||
|
|
||||||
@method_decorator(identity_required, name="dispatch")
|
@method_decorator(identity_required, name="dispatch")
|
||||||
|
|
|
@ -16,6 +16,13 @@ class InterfacePage(SettingsPage):
|
||||||
"help_text": "Visibility to use as default for new posts.",
|
"help_text": "Visibility to use as default for new posts.",
|
||||||
"choices": Post.Visibilities.choices,
|
"choices": Post.Visibilities.choices,
|
||||||
},
|
},
|
||||||
|
"visible_reaction_counts": {
|
||||||
|
"title": "Show Boost and Like Counts",
|
||||||
|
"help_text": "Disable to hide the number of Likes and Boosts on a 'Post'",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
layout = {"Posting": ["toot_mode", "default_post_visibility"]}
|
layout = {
|
||||||
|
"Posting": ["toot_mode", "default_post_visibility"],
|
||||||
|
"Wellness": ["visible_reaction_counts"],
|
||||||
|
}
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
from users.views.settings.settings_page import SettingsPage
|
|
||||||
|
|
||||||
|
|
||||||
class WellnessPage(SettingsPage):
|
|
||||||
|
|
||||||
section = "wellness"
|
|
||||||
|
|
||||||
options = {
|
|
||||||
"visible_reaction_counts": {
|
|
||||||
"title": "Show Boost and Like Counts",
|
|
||||||
"help_text": "Disable to hide the number of Likes and Boosts on a 'Post'",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
layout = {"Wellness": ["visible_reaction_counts"]}
|
|
Loading…
Reference in a new issue