panel: clearer nav labels and card headings, danger-style Sign out

Rename technical labels (postqueue -p, mail.log tail, Send log/Queue/Log
in nav) to plain descriptions, and style Sign out as a deliberate danger
action consistent with other destructive buttons.
This commit is contained in:
2026-08-03 21:19:46 +03:00
parent 66fab00807
commit a55dbaeec0
6 changed files with 14 additions and 13 deletions
+4 -4
View File
@@ -38,16 +38,16 @@
<div class="links">
{{if eq .Active "status"}}<span aria-current="page">Status</span>{{else}}<a href="/status">Status</a>{{end}}
{{if eq .Active "domains"}}<span aria-current="page">Domains</span>{{else}}<a href="/domains">Domains</a>{{end}}
{{if eq .Active "sendlog"}}<span aria-current="page">Send log</span>{{else}}<a href="/sendlog">Send log</a>{{end}}
{{if eq .Active "queue"}}<span aria-current="page">Queue</span>{{else}}<a href="/queue">Queue</a>{{end}}
{{if eq .Active "logtail"}}<span aria-current="page">Log</span>{{else}}<a href="/logtail">Log</a>{{end}}
{{if eq .Active "sendlog"}}<span aria-current="page">Deliveries</span>{{else}}<a href="/sendlog">Deliveries</a>{{end}}
{{if eq .Active "queue"}}<span aria-current="page">Mail queue</span>{{else}}<a href="/queue">Mail queue</a>{{end}}
{{if eq .Active "logtail"}}<span aria-current="page">System log</span>{{else}}<a href="/logtail">System log</a>{{end}}
{{if eq .Active "backup"}}<span aria-current="page">Backup</span>{{else}}<a href="/backup">Backup</a>{{end}}
</div>
<div class="session">
<span class="muted">{{.User}}</span>
{{if eq .Active "account"}}<span aria-current="page">Account</span>{{else}}<a href="/account">Account</a>{{end}}
<form class="inline" method="post" action="/logout">
<button type="submit">Sign out</button>
<button type="submit" class="danger">Sign out</button>
</form>
</div>
</nav>
+1 -1
View File
@@ -2,7 +2,7 @@
<h1>Mail log</h1>
<div class="card">
<h2>mail.log tail</h2>
<h2>Recent log entries</h2>
{{template "logtail_body" .}}
</div>
{{end}}
+1 -1
View File
@@ -2,7 +2,7 @@
<h1>Mail queue</h1>
<div class="card">
<h2>postqueue -p</h2>
<h2>Pending messages</h2>
{{template "queue_body" .}}
</div>
{{end}}
+1 -1
View File
@@ -1,5 +1,5 @@
{{define "content"}}
<h1>Send log</h1>
<h1>Deliveries</h1>
<div class="card">
<h2>Filter</h2>