aboutsummaryrefslogtreecommitdiff
path: root/themes/sourcehut/message.html
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-02-25 16:13:10 +0100
committerSimon Ser <contact@emersion.fr>2020-02-25 16:13:10 +0100
commitb3f98de1da11e13dea5c08af4f80520258c120cf (patch)
treeb3a4443b307b222fce6c0d40daf4d2032c14002c /themes/sourcehut/message.html
parenta8a3c82579ac244dde56320224f6bd15f17427f7 (diff)
downloadalps-b3f98de1da11e13dea5c08af4f80520258c120cf.tar.gz
alps-b3f98de1da11e13dea5c08af4f80520258c120cf.zip
plugins/viewhtml: add opt-in query param to load remote resources
Loading remote resources by default has privacy implications.
Diffstat (limited to 'themes/sourcehut/message.html')
-rw-r--r--themes/sourcehut/message.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html
index fb38932..17f5976 100644
--- a/themes/sourcehut/message.html
+++ b/themes/sourcehut/message.html
@@ -99,6 +99,13 @@
{{end}}
</ul>
+ {{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>
+ </p>
+ {{end}}
+
{{if .View}}
{{.View}}
{{else}}