aboutsummaryrefslogtreecommitdiff
path: root/themes/sourcehut
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 /themes/sourcehut
parentb3f98de1da11e13dea5c08af4f80520258c120cf (diff)
downloadalps-c96903f3f1e0ed365b0ff4d56e4c423b4a7902e5.tar.gz
alps-c96903f3f1e0ed365b0ff4d56e4c423b4a7902e5.zip
plugins/base: replace MessageRenderData.PartPath with Part
Diffstat (limited to 'themes/sourcehut')
-rw-r--r--themes/sourcehut/message.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html
index 17f5976..4a9fbc8 100644
--- a/themes/sourcehut/message.html
+++ b/themes/sourcehut/message.html
@@ -19,7 +19,7 @@
<li class="nav-item">
<a
class="nav-link"
- href="{{.Message.Uid}}/reply?part={{.PartPath}}"
+ href="{{.Message.URL}}/reply?part={{.Part.PathString}}"
>Reply</a>
</li>
<li class="mr-auto d-none d-sm-flex"></li>
@@ -47,14 +47,14 @@
<a
class="nav-link"
{{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 gt (len .Children) 0}}
<ul class="nav flex-column">
@@ -102,7 +102,7 @@
{{if and .Extra.HasRemoteResources (not .Extra.RemoteResourcesAllowed)}}
<p class="alert alert-info">
This message contains remote content.
- <a href="?part={{.PartPath}}&allow-remote-resources=1" class="alert-link">Load</a>
+ <a href="?part={{.Part.PathString}}&allow-remote-resources=1" class="alert-link">Load</a>
</p>
{{end}}
@@ -110,7 +110,7 @@
{{.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}}
</div>
<div class="col-md-3 parts-column">
@@ -118,7 +118,7 @@
<details>
<summary>Move to another mailbox</summary>
- <form method="post" action="{{.Message.Uid}}/move">
+ <form method="post" action="{{.Message.URL}}/move">
<div class="form-group">
<select class="form-control" name="to" id="move-to">
{{range .Mailboxes}}
@@ -134,7 +134,7 @@
<details>
<summary>Delete</summary>
- <form method="post" action="{{.Message.Uid}}/delete">
+ <form method="post" action="{{.Message.URL}}/delete">
<p>Are you sure?</p>
<div class="pull-right">
<button class="btn btn-danger">Delete</button>
@@ -145,7 +145,7 @@
{{if .Flags}}
<details>
<summary>Edit flags</summary>
- <form method="post" action="{{.Message.Uid}}/flag">
+ <form method="post" action="{{.Message.URL}}/flag">
<div class="form-group">
{{range $name, $has := .Flags}}
{{if ismutableflag $name}}