From 0f28b1981fc386f6171ae14939a1b7aca86640ba Mon Sep 17 00:00:00 2001 From: JP Appel Date: Sat, 5 Oct 2024 13:40:12 -0400 Subject: Add server controls to dashboard, update styling --- dashboard/dashboard.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dashboard') diff --git a/dashboard/dashboard.go b/dashboard/dashboard.go index c3839f2..8daf375 100644 --- a/dashboard/dashboard.go +++ b/dashboard/dashboard.go @@ -11,6 +11,10 @@ import ( var Logger *slog.Logger var templates map[string]*template.Template +func getStatuses() { + +} + func Index(w http.ResponseWriter, req *http.Request) { t, ok := templates["dashboard"] @@ -44,5 +48,7 @@ func init() { filepath.Join("templates", "base.html"), filepath.Join("templates", "dashboard", "dashboard.html"), filepath.Join("templates", "dashboard", "server_status.html"), + filepath.Join("templates", "dashboard", "server_controls.html"), + filepath.Join("templates", "dashboard", "server_logs.html"), )) } -- cgit v1.2.3