fix(webui): blank page regression; execute named templates (dashboard.tmpl, summarizer.tmpl) in render()
This commit is contained in:
parent
b993482b85
commit
3ed38031be
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, base, data)
|
_ = tpl.ExecuteTemplate(w, name, data)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
{{ template .Content . }}
|
{{ block "content" . }}{{ end }}
|
||||||
<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