Unify mailbox pane labels
This commit is contained in:
parent
31419696df
commit
9d31a14f79
1 changed files with 3 additions and 3 deletions
|
|
@ -1130,7 +1130,7 @@ func firstSourceFolder(account Account) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func renderSourceMailboxMessageList(w io.Writer, account Account, folder string, messages []RawMessage) {
|
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 {
|
for i, raw := range messages {
|
||||||
subject := "(ohne Betreff)"
|
subject := "(ohne Betreff)"
|
||||||
from := "(ohne Absender)"
|
from := "(ohne Absender)"
|
||||||
|
|
@ -1317,7 +1317,7 @@ func firstTargetFolder(account Account) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func renderTargetMailboxMessageList(w io.Writer, account Account, folder string, messages []RawMessage) {
|
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 {
|
for i, raw := range messages {
|
||||||
subject := "(ohne Betreff)"
|
subject := "(ohne Betreff)"
|
||||||
from := "(ohne Absender)"
|
from := "(ohne Absender)"
|
||||||
|
|
@ -1370,7 +1370,7 @@ func renderMailboxReadPane(w io.Writer, title, account, folder string, index int
|
||||||
if subject == "" {
|
if subject == "" {
|
||||||
subject = "(ohne Betreff)"
|
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>`,
|
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))
|
html.EscapeString(subject), html.EscapeString(from), html.EscapeString(date), html.EscapeString(account), html.EscapeString(folder), index+1, html.EscapeString(body))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue