aboutsummaryrefslogtreecommitdiff
path: root/http_handle_index.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_handle_index.go')
-rw-r--r--http_handle_index.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_index.go b/http_handle_index.go
index a1ecfe4..c1efd98 100644
--- a/http_handle_index.go
+++ b/http_handle_index.go
@@ -19,7 +19,7 @@ func (s *Server) httpHandleIndex(writer http.ResponseWriter, request *http.Reque
groups, err = s.queryNameDesc(request.Context(), "SELECT name, COALESCE(description, '') FROM groups WHERE parent_group IS NULL")
if err != nil {
- web.ErrorPage500(templates, writer, params, "Error querying groups: "+err.Error())
+ web.ErrorPage500(s.templates, writer, params, "Error querying groups: "+err.Error())
return
}
params["groups"] = groups
@@ -28,5 +28,5 @@ func (s *Server) httpHandleIndex(writer http.ResponseWriter, request *http.Reque
memstats := runtime.MemStats{} //exhaustruct:ignore
runtime.ReadMemStats(&memstats)
params["mem"] = humanize.IBytes(memstats.Alloc)
- renderTemplate(writer, "index", params)
+ s.renderTemplate(writer, "index", params)
}