Unify mailbox pane labels

This commit is contained in:
DonVoo 2026-07-13 08:04:29 +02:00
parent 31419696df
commit 9d31a14f79

View file

@ -1130,7 +1130,7 @@ func firstSourceFolder(account Account) (string, error) {
}
func renderSourceMailboxMessageList(w io.Writer, account Account, folder string, messages []RawMessage) {
fmt.Fprintf(w, `<div class="pane-head">%s / %s (%d)</div>`, html.EscapeString(account.SrcUser), html.EscapeString(folder), len(messages))
fmt.Fprint(w, `<div class="pane-head">Nachrichten</div>`)
for i, raw := range messages {
subject := "(ohne Betreff)"
from := "(ohne Absender)"
@ -1317,7 +1317,7 @@ func firstTargetFolder(account Account) (string, error) {
}
func renderTargetMailboxMessageList(w io.Writer, account Account, folder string, messages []RawMessage) {
fmt.Fprintf(w, `<div class="pane-head">%s / %s (%d)</div>`, html.EscapeString(account.DstUser), html.EscapeString(folder), len(messages))
fmt.Fprint(w, `<div class="pane-head">Nachrichten</div>`)
for i, raw := range messages {
subject := "(ohne Betreff)"
from := "(ohne Absender)"
@ -1370,7 +1370,7 @@ func renderMailboxReadPane(w io.Writer, title, account, folder string, index int
if subject == "" {
subject = "(ohne Betreff)"
}
fmt.Fprintf(w, `<div class="pane-head mode-head"><span class="mode-label">%s</span></div>`, html.EscapeString(title))
fmt.Fprint(w, `<div class="pane-head mode-head"><span class="mode-label">Vorschau</span></div>`)
fmt.Fprintf(w, `<div class="read-body"><div class="read-head"><h1 class="read-subject">%s</h1><div class="read-meta">Von: %s<br>Datum: %s<br>Postfach: %s / %s / #%d</div></div><pre class="read-pre">%s</pre></div>`,
html.EscapeString(subject), html.EscapeString(from), html.EscapeString(date), html.EscapeString(account), html.EscapeString(folder), index+1, html.EscapeString(body))
}