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,
|
|
|
|
},
|
2023-03-08 10:01:21 -08:00
|
|
|
"default_reply_visibility": {
|
|
|
|
"title": "Default Reply Visibility",
|
|
|
|
"help_text": "Visibility to use as default for replies.",
|
|
|
|
"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-12-24 06:28:39 -08:00
|
|
|
"custom_css": {
|
|
|
|
"title": "Custom CSS",
|
|
|
|
"help_text": "Theme the website however you'd like, just for you. You should probably not use this unless you know what you're doing.",
|
|
|
|
"display": "textarea",
|
|
|
|
},
|
2022-12-26 09:03:13 -08:00
|
|
|
"expand_linked_cws": {
|
|
|
|
"title": "Expand linked Content Warnings",
|
|
|
|
"help_text": "Expands all CWs of the same type at once, rather than one at a time.",
|
|
|
|
},
|
2022-12-29 10:33:41 -08:00
|
|
|
"infinite_scroll": {
|
|
|
|
"title": "Infinite Scroll",
|
|
|
|
"help_text": "Automatically loads more posts when you get to the bottom of a timeline.",
|
|
|
|
},
|
2023-01-16 12:05:21 -08:00
|
|
|
"light_theme": {
|
|
|
|
"title": "Light Mode",
|
|
|
|
"help_text": "Use a light theme rather than the default dark theme.",
|
|
|
|
},
|
2022-11-25 18:33:46 -08:00
|
|
|
}
|
|
|
|
|
2022-12-23 22:01:27 -08:00
|
|
|
layout = {
|
2023-03-08 10:01:21 -08:00
|
|
|
"Posting": ["toot_mode", "default_post_visibility", "default_reply_visibility"],
|
2022-12-29 10:33:41 -08:00
|
|
|
"Wellness": ["infinite_scroll", "visible_reaction_counts", "expand_linked_cws"],
|
2023-01-16 12:05:21 -08:00
|
|
|
"Appearance": ["light_theme", "custom_css"],
|
2022-12-23 22:01:27 -08:00
|
|
|
}
|