alps/public/message.html

27 lines
448 B
HTML
Raw Normal View History

2019-12-02 18:55:52 +00:00
{{template "head"}}
<h1>koushin</h1>
<a href="/mailbox/{{.Mailbox.Name}}">Back</a>
<h2>{{.Message.Envelope.Subject}}</h2>
2019-12-03 10:11:49 +00:00
{{define "message-part"}}
2019-12-03 10:36:53 +00:00
<a href="?part={{.PathString}}">{{.MIMEType}}</a>
{{if gt (len .Children) 0}}
2019-12-03 10:11:49 +00:00
<ul>
2019-12-03 10:36:53 +00:00
{{range .Children}}
2019-12-03 10:11:49 +00:00
<li>{{template "message-part" .}}</li>
{{end}}
</ul>
{{end}}
{{end}}
2019-12-03 10:36:53 +00:00
{{template "message-part" .Message.PartTree}}
2019-12-03 10:11:49 +00:00
{{if .Body}}
<pre>{{.Body}}</pre>
{{end}}
2019-12-02 18:55:52 +00:00
{{template "foot"}}