customize: split into separate settings and template forms

This commit is contained in:
blankie 2026-06-14 08:14:43 +00:00
parent 117fc1312c
commit 076390cbee
2 changed files with 14 additions and 12 deletions

View file

@ -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)