2022-11-26 02:33:46 +00:00
|
|
|
from activities.models.post import Post
|
2022-12-14 17:15:46 +00:00
|
|
|
from users.views.settings.settings_page import SettingsPage
|
2022-11-26 02:33:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
class InterfacePage(SettingsPage):
|
|
|
|
section = "interface"
|
|
|
|
|
|
|
|
options = {
|
|
|
|
"default_post_visibility": {
|
|
|
|
"title": "Default Post Visibility",
|
|
|
|
"help_text": "Visibility to use as default for new posts.",
|
|
|
|
"choices": Post.Visibilities.choices,
|
|
|
|
},
|
2023-03-08 18:01:21 +00:00
|
|
|
"default_reply_visibility": {
|
|
|
|
"title": "Default Reply Visibility",
|
|
|
|
"help_text": "Visibility to use as default for replies.",
|
|
|
|
"choices": Post.Visibilities.choices,
|
|
|
|
},
|
2022-12-24 14:28:39 +00: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",
|
|
|
|
},
|
2023-01-16 20:05:21 +00:00
|
|
|
"light_theme": {
|
|
|
|
"title": "Light Mode",
|
|
|
|
"help_text": "Use a light theme rather than the default dark theme.",
|
|
|
|
},
|
2022-11-26 02:33:46 +00:00
|
|
|
}
|
|
|
|
|
2022-12-24 06:01:27 +00:00
|
|
|
layout = {
|
2023-04-27 06:54:38 +00:00
|
|
|
"Posting": ["default_post_visibility", "default_reply_visibility"],
|
2023-01-16 20:05:21 +00:00
|
|
|
"Appearance": ["light_theme", "custom_css"],
|
2022-12-24 06:01:27 +00:00
|
|
|
}
|