aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-03 11:36:53 +0100
committerSimon Ser <contact@emersion.fr>2019-12-03 11:36:53 +0100
commited50cef3cf806c09762e75cf10fb022ce19d3a1b (patch)
tree6ad9b054c883055b25c123c4c9d4db0d546b4370 /public
parent4cbe2fde9dad377dfedbf57b5e77df78e4e5b417 (diff)
downloadalps-ed50cef3cf806c09762e75cf10fb022ce19d3a1b.tar.gz
alps-ed50cef3cf806c09762e75cf10fb022ce19d3a1b.zip
Linkify message part tree
Diffstat (limited to 'public')
-rw-r--r--public/message.html8
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>