diff --git a/themes/sourcehut/compose.html b/themes/sourcehut/compose.html index a9f4c49..35eb611 100644 --- a/themes/sourcehut/compose.html +++ b/themes/sourcehut/compose.html @@ -4,7 +4,7 @@
-

INBOX

+

Compose

-
+
@@ -69,6 +72,11 @@ href="/mailbox/INBOX" class="btn btn-default" >Cancel +
@@ -63,11 +66,13 @@ {{ .PersonalName }} {{ end }} - {{if .Envelope.Subject}} - {{.Envelope.Subject}} - {{else}} - (No subject) - {{end}} + + {{if .Envelope.Subject}} + {{.Envelope.Subject}} + {{else}} + (No subject) + {{end}} + {{end}} diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html index 07b4ad9..971b59f 100644 --- a/themes/sourcehut/message.html +++ b/themes/sourcehut/message.html @@ -68,16 +68,105 @@
-
+
+ {{define "addr-list"}} + {{range $i, $addr := .}} + {{- if $i}},{{end}} + {{.PersonalName}} + <{{.Address}}> + {{- end}} + {{end}} + +
    +
  • + Date: {{.Message.Envelope.Date | formatdate}} +
  • +
  • + From: {{template "addr-list" .Message.Envelope.From}} +
  • +
  • + To: {{template "addr-list" .Message.Envelope.To}} +
  • + {{if .Message.Envelope.Cc}} +
  • + Cc: {{template "addr-list" .Message.Envelope.Cc}} +
  • + {{end}} + {{if .Message.Envelope.Bcc}} +
  • + Bcc: {{template "addr-list" .Message.Envelope.Bcc}} +
  • + {{end}} +
+ {{if .Body}} -
{{.Body}}
+ {{if .IsHTML}} + + + + {{else}} +
{{.Body}}
+ {{end}} {{else}}

Can't preview this message part.

Download {{end}}
-
+
{{template "message-part-tree" (tuple $ .Message.PartTree)}} + +
+ Move to another mailbox + +
+ +
+
+ +
+ +
+ +
+ Delete +
+

Are you sure?

+
+ +
+
+
+ + {{if .Flags}} +
+ Edit flags +
+
+ {{range $name, $has := .Flags}} + {{if ismutableflag $name}} + + +
+ {{else}} + {{if $has}} + + {{end}} + {{end}} + {{end}} +
+
+ +
+
+
+ {{end}}
diff --git a/themes/sourcehut/settings.html b/themes/sourcehut/settings.html new file mode 100644 index 0000000..bac1867 --- /dev/null +++ b/themes/sourcehut/settings.html @@ -0,0 +1,49 @@ +{{template "head.html"}} +{{template "nav.html"}} + +
+
+
+

Settings

+ +
+
+
+ +
+
+
+ + +
+
+ Cancel + +
+
+
+ + +{{template "foot.html"}}