diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-16 17:45:20 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-16 17:45:20 +0100 |
commit | a425e17b0eda3dd7e961127670a46a3b3b2c3d19 (patch) | |
tree | c0aa6f119e4a3f989384089ec327f37b494e3281 /plugins/base/public/message.html | |
parent | 1841609fbc7a16a657e530e0a208419af7791bd0 (diff) | |
download | alps-a425e17b0eda3dd7e961127670a46a3b3b2c3d19.tar.gz alps-a425e17b0eda3dd7e961127670a46a3b3b2c3d19.zip |
Add button to delete message
Maybe we should add a confirmation step in the future.
References: https://todo.sr.ht/~sircmpwn/koushin/36
Diffstat (limited to 'plugins/base/public/message.html')
-rw-r--r-- | plugins/base/public/message.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html index 2a0ab71..11afa73 100644 --- a/plugins/base/public/message.html +++ b/plugins/base/public/message.html @@ -26,6 +26,10 @@ <input type="submit" value="Move"> </form> +<form method="post" action="{{.Message.Uid}}/delete"> + <input type="submit" value="Delete"> +</form> + {{define "message-part-tree"}} {{/* nested templates can't access the parent's context */}} {{$ = index . 0}} |