summaryrefslogtreecommitdiff
path: root/pkg/webui/states.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkg/webui/states.go4
1 files changed, 2 insertions, 2 deletions
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,
})
})