diff options
Diffstat (limited to 'plugins/base/public/message.html')
-rw-r--r-- | plugins/base/public/message.html | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html index a973881..5457627 100644 --- a/plugins/base/public/message.html +++ b/plugins/base/public/message.html @@ -110,7 +110,7 @@ <hr> -{{if .Body}} +{{if .View}} <p> {{if .Message.HasFlag "\\Draft"}} <a href="{{.Message.Uid}}/edit?part={{.PartPath}}">Edit draft</a> @@ -118,13 +118,7 @@ <a href="{{.Message.Uid}}/reply?part={{.PartPath}}">Reply</a> {{end}} </p> - {{if .IsHTML}} - <!-- allow-same-origin is required to resize the frame with its content --> - <!-- allow-popups is required for target="_blank" links --> - <iframe id="email-frame" srcdoc="{{.Body}}" sandbox="allow-same-origin allow-popups"></iframe> - {{else}} - <pre>{{.Body}}</pre> - {{end}} + {{.View}} {{else}} <p>Can't preview this message part.</p> <a href="{{.Message.Uid}}/raw?part={{.PartPath}}">Download</a> |