2022-11-25 18:33:46 -08:00
|
|
|
from activities.models.post import Post
|
2022-12-14 09:15:46 -08:00
|
|
|
from users.views.settings.settings_page import SettingsPage
|
2022-11-25 18:33:46 -08:00
|
|
|
|
|
|
|
|
|
|
|
class InterfacePage(SettingsPage):
|
|
|
|
|
|
|
|
section = "interface"
|
|
|
|
|
|
|
|
options = {
|
|
|
|
"toot_mode": {
|
|
|
|
"title": "I Will Toot As I Please",
|
|
|
|
"help_text": "Changes all 'Post' buttons to 'Toot!'",
|
|
|
|
},
|
|
|
|
"default_post_visibility": {
|
|
|
|
"title": "Default Post Visibility",
|
|
|
|
"help_text": "Visibility to use as default for new posts.",
|
|
|
|
"choices": Post.Visibilities.choices,
|
|
|
|
},
|
2022-12-23 22:01:27 -08:00
|
|
|
"visible_reaction_counts": {
|
|
|
|
"title": "Show Boost and Like Counts",
|
|
|
|
"help_text": "Disable to hide the number of Likes and Boosts on a 'Post'",
|
|
|
|
},
|
2022-11-25 18:33:46 -08:00
|
|
|
}
|
|
|
|
|
2022-12-23 22:01:27 -08:00
|
|
|
layout = {
|
|
|
|
"Posting": ["toot_mode", "default_post_visibility"],
|
|
|
|
"Wellness": ["visible_reaction_counts"],
|
|
|
|
}
|