aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-03-27 11:25:07 +0100
committerSimon Ser <contact@emersion.fr>2020-03-27 11:25:07 +0100
commitc053b7332e3a8eabea58f07cb23d20b10986f1dd (patch)
treeec2331ecb6ccfb28cd0fe2d5b56cacfa6379bc10 /themes
parentf079bcc704cf4d5aef86dbd99ad5eed5a1a9a04f (diff)
downloadalps-c053b7332e3a8eabea58f07cb23d20b10986f1dd.tar.gz
alps-c053b7332e3a8eabea58f07cb23d20b10986f1dd.zip
themes/alps: add link to edit drafts
Diffstat (limited to 'themes')
-rw-r--r--themes/alps/message.html10
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>
&nbsp;&nbsp;
- <a href="{{.Message.Uid}}/reply?part={{.Part.PathString}}">Reply</a>
- &nbsp;&nbsp;
- <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>
+ &nbsp;&nbsp;
+ <a href="{{.Message.URL}}/forward?part={{.Part.PathString}}">Forward</a>
+ {{end}}
</div>
</div>
</th>