diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-03 18:41:23 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-03 18:41:23 +0100 |
commit | a103309935c4a2c72770343542493d1c285d94dd (patch) | |
tree | 8d030950cf75f4b10f1cc657b56a0079b027b7b5 /public | |
parent | b386d1c2bb0efacea2484b4aa2088c769e048a9c (diff) | |
download | alps-a103309935c4a2c72770343542493d1c285d94dd.tar.gz alps-a103309935c4a2c72770343542493d1c285d94dd.zip |
Add support for replying to a message
Diffstat (limited to 'public')
-rw-r--r-- | public/compose.html | 6 | ||||
-rw-r--r-- | public/message.html | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/public/compose.html b/public/compose.html index 933083c..e35b0fd 100644 --- a/public/compose.html +++ b/public/compose.html @@ -8,11 +8,13 @@ <h2>Compose new message</h2> -<form method="post" action="/compose"> +<form method="post" action=""> + <input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}"> + <p>From:</p> <input type="email" name="from" value="{{.Message.From}}"> <p>To:</p> - <input type="email" name="to" multiple> + <input type="email" name="to" multiple value="{{.Message.ToString}}"> <p>Subject:</p> <input type="text" name="subject" value="{{.Message.Subject}}"> <p>Body:</p> diff --git a/public/message.html b/public/message.html index fc97bf4..2e1a308 100644 --- a/public/message.html +++ b/public/message.html @@ -40,6 +40,7 @@ <hr> {{if .Body}} + <p><a href="{{.Message.Uid}}/reply?part={{.PartPath}}">Reply</a></p> <pre>{{.Body}}</pre> {{else}} <p>Can't preview this message part.</p> |