aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/public/compose.html
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-01-28 12:30:07 +0100
committerSimon Ser <contact@emersion.fr>2020-01-28 12:30:07 +0100
commit85c01b87a99233fcc273e810b4ad48bb0d33096f (patch)
tree18c2bf279602f684db34ae5a0180f1f6b07a94b0 /plugins/base/public/compose.html
parent50046b62ac61a985f82bfc22b4e7b39b334d030c (diff)
downloadalps-85c01b87a99233fcc273e810b4ad48bb0d33096f.tar.gz
alps-85c01b87a99233fcc273e810b4ad48bb0d33096f.zip
plugins/base: support attachments in drafts
References: https://todo.sr.ht/~sircmpwn/koushin/16
Diffstat (limited to 'plugins/base/public/compose.html')
-rw-r--r--plugins/base/public/compose.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/base/public/compose.html b/plugins/base/public/compose.html
index 0db84c0..dd3c7aa 100644
--- a/plugins/base/public/compose.html
+++ b/plugins/base/public/compose.html
@@ -25,6 +25,13 @@
<br><br>
<label for="attachments">Attachments:</label>
<input type="file" name="attachments" id="attachments" multiple>
+ {{range .Message.Attachments}}
+ <br>
+ <label>
+ <input type="checkbox" name="prev_attachments" value="{{.Node.PathString}}" checked>
+ {{.Node}}
+ </label>
+ {{end}}
<br><br>
<input type="submit" name="save_as_draft" value="Save as draft">
<input type="submit" value="Send">