This repository has been archived on 2023-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
takahe/users/views/settings/interface.py

22 lines
621 B
Python
Raw Permalink Normal View History

2022-11-26 03:33:46 +01:00
from activities.models.post import Post
from users.views.settings.settings_page import SettingsPage
2022-11-26 03:33:46 +01: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,
},
}
layout = {"Posting": ["toot_mode", "default_post_visibility"]}