From d0355fa0d85deb2f3a6ebee0e00fec516a3d6f41 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 12 Dec 2019 13:54:57 -0500 Subject: Add simple Sourcehut-based theme --- public/themes/sourcehut/message.html | 86 ++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 public/themes/sourcehut/message.html (limited to 'public/themes/sourcehut/message.html') diff --git a/public/themes/sourcehut/message.html b/public/themes/sourcehut/message.html new file mode 100644 index 0000000..07b4ad9 --- /dev/null +++ b/public/themes/sourcehut/message.html @@ -0,0 +1,86 @@ +{{template "head.html"}} +{{template "nav.html"}} + +
+
+
+

+ {{if .Message.Envelope.Subject}} + {{.Message.Envelope.Subject}} + {{else}} + (No subject) + {{end}} +

+ +
+
+
+ +{{define "message-part-tree"}} + {{/* nested templates can't access the parent's context */}} + {{$ = index . 0}} + {{with index . 1}} + + {{if eq $.PartPath .PathString}}{{end}} + {{.String}} + {{if eq $.PartPath .PathString}}{{end}} + + {{if gt (len .Children) 0}} + + {{end}} + {{end}} +{{end}} + +
+
+
+ {{if .Body}} +
{{.Body}}
+ {{else}} +

Can't preview this message part.

+ Download + {{end}} +
+
+ {{template "message-part-tree" (tuple $ .Message.PartTree)}} +
+
+
+ +{{template "foot.html"}} + -- cgit v1.2.3