From 81f52cc90653c210998a0d85951ef65f09e0f491 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 27 Mar 2020 10:46:32 +0100 Subject: themes/alps: better redirect after performing message operations Go back to the right page. --- themes/alps/message.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'themes/alps/message.html') 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 @@ - + +
-- cgit v1.2.3