From 4e029fb83a1e70495330eaac94981a97de24682e Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 26 Jan 2025 00:04:38 +0100 Subject: feat(webui): bootstrap a proper UI --- pkg/webui/states.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/webui/states.go') diff --git a/pkg/webui/states.go b/pkg/webui/states.go index 3633cb8..9e3ce27 100644 --- a/pkg/webui/states.go +++ b/pkg/webui/states.go @@ -12,6 +12,7 @@ var statesTemplates = template.Must(template.ParseFS(htmlFS, "html/base.html", " func handleStatesGET(db *database.DB) http.Handler { type StatesData struct { + Page States []model.State } return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { @@ -23,6 +24,7 @@ func handleStatesGET(db *database.DB) http.Handler { return } render(w, statesTemplates, http.StatusOK, StatesData{ + Page: Page{Title: "States", Section: "states"}, States: states, }) }) -- cgit v1.2.3