diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-03 11:36:53 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-03 11:36:53 +0100 |
commit | ed50cef3cf806c09762e75cf10fb022ce19d3a1b (patch) | |
tree | 6ad9b054c883055b25c123c4c9d4db0d546b4370 /public | |
parent | 4cbe2fde9dad377dfedbf57b5e77df78e4e5b417 (diff) | |
download | alps-ed50cef3cf806c09762e75cf10fb022ce19d3a1b.tar.gz alps-ed50cef3cf806c09762e75cf10fb022ce19d3a1b.zip |
Linkify message part tree
Diffstat (limited to 'public')
-rw-r--r-- | public/message.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/public/message.html b/public/message.html index 047e78f..18646f0 100644 --- a/public/message.html +++ b/public/message.html @@ -7,17 +7,17 @@ <h2>{{.Message.Envelope.Subject}}</h2> {{define "message-part"}} - {{.MIMEType}}/{{.MIMESubType}} - {{if gt (len .Parts) 0}} + <a href="?part={{.PathString}}">{{.MIMEType}}</a> + {{if gt (len .Children) 0}} <ul> - {{range .Parts}} + {{range .Children}} <li>{{template "message-part" .}}</li> {{end}} </ul> {{end}} {{end}} -{{template "message-part" .Message.BodyStructure}} +{{template "message-part" .Message.PartTree}} {{if .Body}} <pre>{{.Body}}</pre> |