diff options
author | Simon Ser <contact@emersion.fr> | 2020-03-19 16:43:27 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-03-19 16:43:27 +0100 |
commit | b61e40f36309e94541a6de3aff6d7356e9d7f99f (patch) | |
tree | 671d0eab642d7888f3926353f3a1b43cf3bd528a /themes/sourcehut/message.html | |
parent | fe73f2022c89ab7e32644668a3499698dd2f8368 (diff) | |
download | alps-b61e40f36309e94541a6de3aff6d7356e9d7f99f.tar.gz alps-b61e40f36309e94541a6de3aff6d7356e9d7f99f.zip |
plugins/base: allow move/delete/flag operations to take multiple UIDs
Diffstat (limited to 'themes/sourcehut/message.html')
-rw-r--r-- | themes/sourcehut/message.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html index af39b15..1e4197f 100644 --- a/themes/sourcehut/message.html +++ b/themes/sourcehut/message.html @@ -124,7 +124,8 @@ <details> <summary>Move to another mailbox</summary> - <form method="post" action="{{.Message.URL}}/move"> + <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/move"> + <input type="hidden" name="uids" value="{{.Message.Uid}}"> <div class="form-group"> <select class="form-control" name="to" id="move-to"> {{range .Mailboxes}} @@ -140,7 +141,8 @@ <details> <summary>Delete</summary> - <form method="post" action="{{.Message.URL}}/delete"> + <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/delete"> + <input type="hidden" name="uids" value="{{.Message.Uid}}"> <p>Are you sure?</p> <div class="pull-right"> <button class="btn btn-danger">Delete</button> @@ -151,7 +153,8 @@ {{if .Flags}} <details> <summary>Edit flags</summary> - <form method="post" action="{{.Message.URL}}/flag"> + <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/flag"> + <input type="hidden" name="uids" value="{{.Message.Uid}}"> <div class="form-group"> {{range $name, $has := .Flags}} {{if ismutableflag $name}} |