From 3db443c1df77804270f86e9e2afe92da52314685 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 23 Oct 2020 15:32:59 -0400 Subject: message.html: add tab to view raw email --- themes/alps/message.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'themes') diff --git a/themes/alps/message.html b/themes/alps/message.html index 5d5f64b..74e2d0b 100644 --- a/themes/alps/message.html +++ b/themes/alps/message.html @@ -11,7 +11,7 @@ {{if .IsText}} href="?part={{.PathString}}" {{else}} - href="/raw?part={{.PathString}}" + href="{{$.Message.URL}}raw?part={{.PathString}}" {{end}} > {{if eq $.Part.PathString .PathString}}{{end}} @@ -178,15 +178,15 @@ {{ $html := .Message.HTMLPart }} {{ $text := .Message.TextPart }}
- {{ if and $html $text }} - {{ if ne $html.PathString $text.PathString }} {{/* https://github.com/golang/go/issues/31103 */}} Plain text + {{ if and $html $text }} + {{ if ne $html.PathString $text.PathString }} HTML {{ end }} {{ end }} + Raw email
{{if .View}} {{.View}} {{else}}

Can't preview this message part.

- Download + Download {{end}} -- cgit v1.2.3