e0847517a8
Add settings.html (shell + sub-tab nav + conditional list/edit body), notifications.html and notification_edit.html (glob stubs), and the supporting CSS tokens (.ch-row, .ch-icon, .toggle, .kind-grid, .kind-card, .radio-pip, .test-pill) to input.css. Rebuild styles.css. Add ui_parse_test.go to catch template regressions at test time. The kind picker is JS-driven (no full page reload); the enabled toggle mirrors the existing visual toggle pattern; the test-notification button uses HTMX and renders the JSON response as a coloured pill client-side.
10 lines
599 B
HTML
10 lines
599 B
HTML
{{/* notifications.html — rendered by handleUINotificationsList via Render("settings", …).
|
|
This file exists so the glob-discovered page registry includes it cleanly.
|
|
The actual list body lives in settings.html's notification_list_body block. */}}
|
|
{{define "title"}}Notifications · Settings · restic-manager{{end}}
|
|
{{define "content"}}
|
|
{{/* This page is served under the "settings" renderer key; this file is a
|
|
placeholder discovered by the glob so ui.New() registers "notifications"
|
|
as a valid page. Handlers do not call Render("notifications", …) directly. */}}
|
|
{{end}}
|