diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-10-30 15:21:33 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-10-30 15:21:33 -0400 |
commit | e4daf0778dc4682405017a7cbdc593808257408f (patch) | |
tree | 84628d405bcdf696636a9902d83201387ade4fda /themes/alps/messages-header.html | |
parent | 62e7cf89339ac585bdb72e78d90f0b468916436a (diff) | |
download | alps-e4daf0778dc4682405017a7cbdc593808257408f.tar.gz alps-e4daf0778dc4682405017a7cbdc593808257408f.zip |
Implement mailbox deletion
Diffstat (limited to 'themes/alps/messages-header.html')
-rw-r--r-- | themes/alps/messages-header.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/alps/messages-header.html b/themes/alps/messages-header.html index 13e4872..df70e06 100644 --- a/themes/alps/messages-header.html +++ b/themes/alps/messages-header.html @@ -26,6 +26,12 @@ <div class="action-group"> <a href="{{ .GlobalData.URL.String }}" class="button-link">Refresh</a> </div> + + <div class="action-group"> + {{ if not (eq .Mailbox.Name "INBOX") }} + <a class="button-link" href="/delete-mailbox/{{.Mailbox.Name | pathescape}}">Delete folder</a> + {{ end }} + </div> </div> <form method="get" class="actions-search"> |