diff options
author | Julien Dessaux | 2025-01-30 00:19:16 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-01-30 00:19:16 +0100 |
commit | 98c7d6f5785182117b9fe6ebd6b892f860bc2024 (patch) | |
tree | 261f22399f8f3fce71a2e1c4fc79314c2a8c5efd /pkg/webui/state.go | |
parent | fix(webui): fix invalid session cookie handling (diff) | |
download | tfstated-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.go | 6 |
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, |