From 98c7d6f5785182117b9fe6ebd6b892f860bc2024 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 30 Jan 2025 00:19:16 +0100 Subject: feat(webui): bootstrap account settings management with light and dark mode --- pkg/webui/states.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/webui/states.go') diff --git a/pkg/webui/states.go b/pkg/webui/states.go index d99d310..a0d16ca 100644 --- a/pkg/webui/states.go +++ b/pkg/webui/states.go @@ -12,7 +12,7 @@ var statesTemplates = template.Must(template.ParseFS(htmlFS, "html/base.html", " func handleStatesGET(db *database.DB) http.Handler { type StatesData struct { - Page + Page *Page States []model.State } return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { @@ -22,7 +22,7 @@ func handleStatesGET(db *database.DB) http.Handler { return } render(w, statesTemplates, http.StatusOK, StatesData{ - Page: Page{Title: "States", Section: "states"}, + Page: makePage(r, &Page{Title: "States", Section: "states"}), States: states, }) }) -- cgit v1.2.3