From 5bc3050dd465fc36c5702c09857b6fd5cd756454 Mon Sep 17 00:00:00 2001 From: Blake Ridgway Date: Fri, 27 Mar 2026 20:15:02 -0500 Subject: [PATCH] more changes to the website --- data/status.json | 2 +- data/uptime.json | 16 ++++++++++++++++ internal/handler/admin.go | 4 ---- templates/admin/changelog-editor.html | 2 +- templates/admin/dashboard.html | 1 + templates/admin/editor.html | 2 +- templates/error.html | 2 +- templates/index.html | 2 +- 8 files changed, 22 insertions(+), 9 deletions(-) diff --git a/data/status.json b/data/status.json index 64b0c9f..998e31d 100644 --- a/data/status.json +++ b/data/status.json @@ -1,5 +1,5 @@ { - "last_checked": "2026-03-27T12:53:37.268148673Z", + "last_checked": "2026-03-27T13:17:04.05294829Z", "services": [ { "name": "Web (httpd)", diff --git a/data/uptime.json b/data/uptime.json index e168145..8a71d6e 100644 --- a/data/uptime.json +++ b/data/uptime.json @@ -110,5 +110,21 @@ "VPN (WireGuard)": "up", "Web (httpd)": "up" } + }, + { + "time": "2026-03-27T13:00:00Z", + "statuses": { + "DNS (nsd)": "up", + "DNS (unbound)": "up", + "Email (OpenSMTPD)": "up", + "Game Servers": "up", + "Gitea": "down", + "Grafana": "up", + "Jellyfin": "up", + "Matrix (Conduit)": "up", + "Monitoring (Prometheus)": "up", + "VPN (WireGuard)": "up", + "Web (httpd)": "up" + } } ] \ No newline at end of file diff --git a/internal/handler/admin.go b/internal/handler/admin.go index 43027fb..a2a69ac 100644 --- a/internal/handler/admin.go +++ b/internal/handler/admin.go @@ -272,10 +272,6 @@ func (h *Handler) adminPreview(w http.ResponseWriter, r *http.Request) { h.renderErr(w, http.StatusMethodNotAllowed, "POST required.") return } - if err := r.ParseForm(); err != nil { - http.Error(w, "bad request", http.StatusBadRequest) - return - } content := r.FormValue("content") html, err := blog.RenderMarkdown(content) if err != nil { diff --git a/templates/admin/changelog-editor.html b/templates/admin/changelog-editor.html index 8004793..28e8134 100644 --- a/templates/admin/changelog-editor.html +++ b/templates/admin/changelog-editor.html @@ -1,4 +1,4 @@ -{{define "title"}}{{if .IsNew}}New Entry{{else}}Edit Entry{{end}} — Changelog Admin{{end}} +{{define "title"}}{{if .Inner.IsNew}}New Entry{{else}}Edit Entry{{end}} — Changelog Admin{{end}} {{define "content"}}
diff --git a/templates/admin/dashboard.html b/templates/admin/dashboard.html index f35fded..2d170c0 100644 --- a/templates/admin/dashboard.html +++ b/templates/admin/dashboard.html @@ -9,6 +9,7 @@ Edit Status Uploads Newsletter + Changelog View Site
diff --git a/templates/admin/editor.html b/templates/admin/editor.html index 2c2dae2..b48f9d7 100644 --- a/templates/admin/editor.html +++ b/templates/admin/editor.html @@ -1,4 +1,4 @@ -{{define "title"}}{{if .IsNew}}New Post{{else}}Edit Post{{end}} — Admin{{end}} +{{define "title"}}{{if .Inner.IsNew}}New Post{{else}}Edit Post{{end}} — Admin{{end}} {{define "content"}}
diff --git a/templates/error.html b/templates/error.html index cd824c2..ee70074 100644 --- a/templates/error.html +++ b/templates/error.html @@ -1,4 +1,4 @@ -{{define "title"}}{{.Code}} {{.Title}} — Ridgway Systems{{end}} +{{define "title"}}{{.Inner.Code}} {{.Inner.Title}} — Ridgway Systems{{end}} {{define "content"}}
diff --git a/templates/index.html b/templates/index.html index 9242b81..534c296 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,7 +21,7 @@
SuperMicro 1U
Firewall • Router • VPN • Reverse Proxy
-
FreeBSD • pf • relayd • WireGuard
+
OPNsense • pf • relayd • WireGuard
Dell R720