aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/public/message.html
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/public/message.html')
-rw-r--r--plugins/base/public/message.html16
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html
index 56e6e6f..b41ae39 100644
--- a/plugins/base/public/message.html
+++ b/plugins/base/public/message.html
@@ -49,24 +49,32 @@
</form>
{{end}}
+{{define "addr-list"}}
+ {{range $i := .}}
+ {{if $i}},{{end}}
+ {{.PersonalName}}
+ &lt;<a href="/compose?to={{.Address}}">{{.Address}}</a>&gt;
+ {{end}}
+{{end}}
+
<ul>
<li>
<strong>Date</strong>: {{.Message.Envelope.Date | formatdate}}
</li>
<li>
- <strong>From</strong>: {{.Message.Envelope.From | formataddrlist}}
+ <strong>From</strong>: {{template "addr-list" .Message.Envelope.From}}
</li>
<li>
- <strong>To</strong>: {{.Message.Envelope.To | formataddrlist}}
+ <strong>To</strong>: {{template "addr-list" .Message.Envelope.To}}
</li>
{{if .Message.Envelope.Cc}}
<li>
- <strong>Cc</strong>: {{.Message.Envelope.Cc | formataddrlist}}
+ <strong>Cc</strong>: {{template "addr-list" .Message.Envelope.Cc}}
</li>
{{end}}
{{if .Message.Envelope.Bcc}}
<li>
- <strong>Bcc</strong>: {{.Message.Envelope.Bcc | formataddrlist}}
+ <strong>Bcc</strong>: {{template "addr-list" .Message.Envelope.Bcc}}
</li>
{{end}}
</ul>