From 19548694e08df0c7f9515cfd22759a73f927b9ba Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 11 Feb 2020 17:11:46 +0100 Subject: themes/sourcehut: sync with latest base plugin --- themes/sourcehut/compose.html | 12 +++++- themes/sourcehut/mailbox.html | 17 +++++--- themes/sourcehut/message.html | 95 ++++++++++++++++++++++++++++++++++++++++-- themes/sourcehut/settings.html | 49 ++++++++++++++++++++++ 4 files changed, 162 insertions(+), 11 deletions(-) create mode 100644 themes/sourcehut/settings.html 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"}} -- cgit v1.2.3