customize: split into separate settings and template forms
This commit is contained in:
parent
38860de7d2
commit
1dc87ac449
2 changed files with 14 additions and 12 deletions
|
|
@ -32,7 +32,7 @@ from .subscriptions import (
|
|||
handle_subscription_delete, handle_subscription_syncall,
|
||||
_sync_threads,
|
||||
)
|
||||
from .customize import handle_style_form, handle_style_submit, handle_about
|
||||
from .customize import handle_style_form, handle_style_submit, handle_style_template_submit, handle_about
|
||||
from .tags import handle_tags, handle_tag_browse
|
||||
from .data import (
|
||||
handle_export, handle_import_form, handle_import_submit,
|
||||
|
|
@ -123,6 +123,8 @@ def _dispatch_inner(data):
|
|||
return handle_delete(pid) if pid is not None else _error(400)
|
||||
elif path == "/style":
|
||||
return handle_style_submit(body, gateway_host=gateway_host, scheme=scheme)
|
||||
elif path == "/style/template":
|
||||
return handle_style_template_submit(body, gateway_host=gateway_host, scheme=scheme)
|
||||
elif path == "/style/reset":
|
||||
set_setting("custom_template", "")
|
||||
return handle_style_form("Template reset to default.", gateway_host=gateway_host, scheme=scheme)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue