From 81f52cc90653c210998a0d85951ef65f09e0f491 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 27 Mar 2020 10:46:32 +0100 Subject: [PATCH] themes/alps: better redirect after performing message operations Go back to the right page. --- themes/alps/mailbox.html | 4 ++-- themes/alps/message.html | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/themes/alps/mailbox.html b/themes/alps/mailbox.html index 6d870ba..6453d69 100644 --- a/themes/alps/mailbox.html +++ b/themes/alps/mailbox.html @@ -7,7 +7,7 @@ Compose Mail {{$current := .Mailbox}} {{range .Mailboxes}} - {{ if eq .Name "INBOX" }} Inbox @@ -44,7 +44,7 @@ {{ end }} - + {{if .Envelope.Subject}} {{.Envelope.Subject}} {{else}} diff --git a/themes/alps/message.html b/themes/alps/message.html index 38ae948..3f5a689 100644 --- a/themes/alps/message.html +++ b/themes/alps/message.html @@ -25,13 +25,15 @@
- « Back + {{$back := printf "%v?page=%v" .Mailbox.URL .MailboxPage}} + « Back    {{ if and (ne .Mailbox.Name "Archive") (ne .Mailbox.Name "Drafts") (ne .Mailbox.Name "Sent") }}
+
{{ end }} @@ -53,6 +55,7 @@ {{ if or (eq .Mailbox.Name "INBOX") (eq .Mailbox.Name "Trash") }}
+    @@ -62,11 +65,13 @@ {{ if or (eq .Mailbox.Name "Trash") (eq .Mailbox.Name "Junk") }} +
{{ else }}
+    @@ -75,8 +80,9 @@ - + +