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/version.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/version.go')
-rw-r--r-- | pkg/webui/version.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/webui/version.go b/pkg/webui/version.go index 04c3e6d..2aa1422 100644 --- a/pkg/webui/version.go +++ b/pkg/webui/version.go @@ -14,7 +14,7 @@ var versionTemplate = template.Must(template.ParseFS(htmlFS, "html/base.html", " func handleVersionGET(db *database.DB) http.Handler { type VersionsData struct { - Page + Page *Page Account *model.Account State *model.State Version *model.Version @@ -44,11 +44,11 @@ func handleVersionGET(db *database.DB) http.Handler { } versionData := string(version.Data[:]) render(w, versionTemplate, http.StatusOK, VersionsData{ - Page: Page{ + Page: makePage(r, &Page{ Precedent: fmt.Sprintf("/state/%d", state.Id), - Section: "versions", + Section: "states", Title: state.Path, - }, + }), Account: account, State: state, Version: version, |