Add modal mail preview

This commit is contained in:
DonVoo 2026-07-13 09:39:29 +02:00
parent 97a65dbbd4
commit dee6dd8cd8
4 changed files with 159 additions and 20 deletions

View file

@ -394,7 +394,7 @@ func renderReadContent(w io.Writer, subject, from, date, body string) {
if subject == "" {
subject = "(ohne Betreff)"
}
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</div></div><pre class="read-pre">%s</pre></div>`,
fmt.Fprintf(w, `<div class="read-body"><div class="read-head with-popout"><button class="preview-popout inline" type="button" title="In modalem Fenster oeffnen" aria-label="In modalem Fenster oeffnen" data-open-mail-modal>&#x26F6;</button><h1 class="read-subject">%s</h1><div class="read-meta">Von: %s<br>Datum: %s</div></div><pre class="read-pre">%s</pre></div>`,
html.EscapeString(subject), html.EscapeString(from), html.EscapeString(date), html.EscapeString(body))
}