diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-24 20:07:29 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-24 20:07:29 +0100 |
commit | d31c56ec98cd3f4fc5afbdd8f840538f3ee59429 (patch) | |
tree | b9a3b97651a1bc6bda44d7f6e5f0824052433a6e /plugins/base/public | |
parent | 2e367efe58ea62ddf85552d68c757f2b6cba25ab (diff) | |
download | alps-d31c56ec98cd3f4fc5afbdd8f840538f3ee59429.tar.gz alps-d31c56ec98cd3f4fc5afbdd8f840538f3ee59429.zip |
plugins/base: edit drafts
Note that attachments will be lost. This is a TODO.
Diffstat (limited to 'plugins/base/public')
-rw-r--r-- | plugins/base/public/message.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html index 9544d0a..3dc7f62 100644 --- a/plugins/base/public/message.html +++ b/plugins/base/public/message.html @@ -111,7 +111,13 @@ <hr> {{if .Body}} - <p><a href="{{.Message.Uid}}/reply?part={{.PartPath}}">Reply</a></p> + <p> + {{if .Message.HasFlag "\\Draft"}} + <a href="{{.Message.Uid}}/edit?part={{.PartPath}}">Edit draft</a> + {{else}} + <a href="{{.Message.Uid}}/reply?part={{.PartPath}}">Reply</a> + {{end}} + </p> {{if .IsHTML}} <!-- allow-same-origin is required to resize the frame with its content --> <!-- allow-popups is required for target="_blank" links --> |