summaryrefslogtreecommitdiff
path: root/pkg/webui/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/webui/version.go')
-rw-r--r--pkg/webui/version.go8
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,