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"}}