diff options
author | Simon Ser <contact@emersion.fr> | 2020-03-27 11:25:07 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-03-27 11:25:07 +0100 |
commit | c053b7332e3a8eabea58f07cb23d20b10986f1dd (patch) | |
tree | ec2331ecb6ccfb28cd0fe2d5b56cacfa6379bc10 /themes | |
parent | f079bcc704cf4d5aef86dbd99ad5eed5a1a9a04f (diff) | |
download | alps-c053b7332e3a8eabea58f07cb23d20b10986f1dd.tar.gz alps-c053b7332e3a8eabea58f07cb23d20b10986f1dd.zip |
themes/alps: add link to edit drafts
Diffstat (limited to 'themes')
-rw-r--r-- | themes/alps/message.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/themes/alps/message.html b/themes/alps/message.html index 29c0617..6d383ae 100644 --- a/themes/alps/message.html +++ b/themes/alps/message.html @@ -104,9 +104,13 @@ </form> - <a href="{{.Message.Uid}}/reply?part={{.Part.PathString}}">Reply</a> - - <a href="{{.Message.Uid}}/forward?part={{.Part.PathString}}">Forward</a> + {{if .Message.HasFlag "\\Draft"}} + <a href="{{.Message.URL}}/edit?part={{.Part.PathString}}">Edit draft</a> + {{else}} + <a href="{{.Message.URL}}/reply?part={{.Part.PathString}}">Reply</a> + + <a href="{{.Message.URL}}/forward?part={{.Part.PathString}}">Forward</a> + {{end}} </div> </div> </th> |