summaryrefslogtreecommitdiff
path: root/pkg/webui/state.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-01-30 00:19:16 +0100
committerJulien Dessaux2025-01-30 00:19:16 +0100
commit98c7d6f5785182117b9fe6ebd6b892f860bc2024 (patch)
tree261f22399f8f3fce71a2e1c4fc79314c2a8c5efd /pkg/webui/state.go
parentfix(webui): fix invalid session cookie handling (diff)
downloadtfstated-98c7d6f5785182117b9fe6ebd6b892f860bc2024.tar.gz
tfstated-98c7d6f5785182117b9fe6ebd6b892f860bc2024.tar.bz2
tfstated-98c7d6f5785182117b9fe6ebd6b892f860bc2024.zip
feat(webui): bootstrap account settings management with light and dark mode
Diffstat (limited to 'pkg/webui/state.go')
-rw-r--r--pkg/webui/state.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/webui/state.go b/pkg/webui/state.go
index c7a6aaf..141d2d8 100644
--- a/pkg/webui/state.go
+++ b/pkg/webui/state.go
@@ -13,7 +13,7 @@ var stateTemplate = template.Must(template.ParseFS(htmlFS, "html/base.html", "ht
func handleStateGET(db *database.DB) http.Handler {
type StatesData struct {
- Page
+ Page *Page
State *model.State
Usernames map[int]string
Versions []model.Version
@@ -41,11 +41,11 @@ func handleStateGET(db *database.DB) http.Handler {
return
}
render(w, stateTemplate, http.StatusOK, StatesData{
- Page: Page{
+ Page: makePage(r, &Page{
Precedent: "/states",
Section: "states",
Title: state.Path,
- },
+ }),
State: state,
Usernames: usernames,
Versions: versions,