aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/public
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-02-25 16:38:29 +0100
committerSimon Ser <contact@emersion.fr>2020-02-25 16:38:29 +0100
commitc96903f3f1e0ed365b0ff4d56e4c423b4a7902e5 (patch)
tree2e2e6905769cc72d0077127d0b6894d347aca0f7 /plugins/base/public
parentb3f98de1da11e13dea5c08af4f80520258c120cf (diff)
downloadalps-c96903f3f1e0ed365b0ff4d56e4c423b4a7902e5.tar.gz
alps-c96903f3f1e0ed365b0ff4d56e4c423b4a7902e5.zip
plugins/base: replace MessageRenderData.PartPath with Part
Diffstat (limited to 'plugins/base/public')
-rw-r--r--plugins/base/public/message.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html
index 5457627..f019acf 100644
--- a/plugins/base/public/message.html
+++ b/plugins/base/public/message.html
@@ -16,7 +16,7 @@
{{end}}
</h2>
-<form method="post" action="{{.Message.Uid}}/move">
+<form method="post" action="{{.Message.URL}}/move">
<label for="move-to">Move to:</label>
<select name="to" id="move-to">
{{range .Mailboxes}}
@@ -26,12 +26,12 @@
<input type="submit" value="Move">
</form>
-<form method="post" action="{{.Message.Uid}}/delete">
+<form method="post" action="{{.Message.URL}}/delete">
<input type="submit" value="Delete">
</form>
{{if .Flags}}
- <form method="post" action="{{.Message.Uid}}/flag">
+ <form method="post" action="{{.Message.URL}}/flag">
<p>Flags:</p>
{{range $name, $has := .Flags}}
{{if ismutableflag $name}}
@@ -85,14 +85,14 @@
{{with index . 1}}
<a
{{if .IsText}}
- href="{{$.Message.Uid}}?part={{.PathString}}"
+ href="{{$.Message.URL}}?part={{.PathString}}"
{{else}}
- href="{{$.Message.Uid}}/raw?part={{.PathString}}"
+ href="{{$.Message.URL}}/raw?part={{.PathString}}"
{{end}}
>
- {{if eq $.PartPath .PathString}}<strong>{{end}}
+ {{if eq $.Part.PathString .PathString}}<strong>{{end}}
{{.String}}
- {{if eq $.PartPath .PathString}}</strong>{{end}}
+ {{if eq $.Part.PathString .PathString}}</strong>{{end}}
</a>
{{if .Children}}
<ul>
@@ -113,15 +113,15 @@
{{if .View}}
<p>
{{if .Message.HasFlag "\\Draft"}}
- <a href="{{.Message.Uid}}/edit?part={{.PartPath}}">Edit draft</a>
+ <a href="{{.Message.URL}}/edit?part={{.Part.PathString}}">Edit draft</a>
{{else}}
- <a href="{{.Message.Uid}}/reply?part={{.PartPath}}">Reply</a>
+ <a href="{{.Message.URL}}/reply?part={{.Part.PathString}}">Reply</a>
{{end}}
</p>
{{.View}}
{{else}}
<p>Can't preview this message part.</p>
- <a href="{{.Message.Uid}}/raw?part={{.PartPath}}">Download</a>
+ <a href="{{.Message.URL}}/raw?part={{.Part.PathString}}">Download</a>
{{end}}
{{template "foot.html"}}