fix(webui): render correct page at / (dashboard), use base template execution; footer centering, navbar layout via CSS
This commit is contained in:
parent
0e0d0ea824
commit
b993482b85
2 changed files with 2 additions and 2 deletions
|
|
@ -43,5 +43,5 @@ func (s *Server) render(w http.ResponseWriter, name string, data map[string]any)
|
||||||
data["Title"] = strings.Title(base)
|
data["Title"] = strings.Title(base)
|
||||||
}
|
}
|
||||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
_ = tpl.ExecuteTemplate(w, name, data)
|
_ = tpl.ExecuteTemplate(w, base, data)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
{{ block "content" . }}{{ end }}
|
{{ template .Content . }}
|
||||||
<footer><small>{{ .Version }} ({{ .Commit }})</small></footer>
|
<footer><small>{{ .Version }} ({{ .Commit }})</small></footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue