panel: match monitoring page titles to their nav labels

The System log page still said "Mail log" in its heading and browser
title, and Deliveries titled itself "send log".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-03 21:42:58 +03:00
parent a06faac213
commit 12a11f185c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ func (s *Server) handleSendLog(w http.ResponseWriter, r *http.Request) {
http.Error(w, "internal error", http.StatusInternalServerError) http.Error(w, "internal error", http.StatusInternalServerError)
return return
} }
data["Title"] = "SelfPost — send log" data["Title"] = "SelfPost — deliveries"
data["User"] = currentUser(r) data["User"] = currentUser(r)
data["Active"] = "sendlog" data["Active"] = "sendlog"
s.render(w, http.StatusOK, "sendlog", data) s.render(w, http.StatusOK, "sendlog", data)
@@ -146,7 +146,7 @@ func readQueue() (string, string) {
func (s *Server) handleLogTail(w http.ResponseWriter, r *http.Request) { func (s *Server) handleLogTail(w http.ResponseWriter, r *http.Request) {
lines, errText := s.readLogTail() lines, errText := s.readLogTail()
s.render(w, http.StatusOK, "logtail", map[string]any{ s.render(w, http.StatusOK, "logtail", map[string]any{
"Title": "SelfPost — mail log", "Title": "SelfPost — system log",
"User": currentUser(r), "User": currentUser(r),
"Active": "logtail", "Active": "logtail",
"Lines": lines, "Lines": lines,
+1 -1
View File
@@ -1,5 +1,5 @@
{{define "content"}} {{define "content"}}
<h1>Mail log</h1> <h1>System log</h1>
<div class="card"> <div class="card">
<h2>Recent log entries</h2> <h2>Recent log entries</h2>