diff options
Diffstat (limited to '')
-rw-r--r-- | pkg/webui/states.go | 2 |
1 files changed, 2 insertions, 0 deletions
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, }) }) |