diff options
author | Simon Ser <contact@emersion.fr> | 2020-02-25 16:13:10 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-02-25 16:13:10 +0100 |
commit | b3f98de1da11e13dea5c08af4f80520258c120cf (patch) | |
tree | b3a4443b307b222fce6c0d40daf4d2032c14002c /themes | |
parent | a8a3c82579ac244dde56320224f6bd15f17427f7 (diff) | |
download | alps-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')
-rw-r--r-- | themes/sourcehut/message.html | 7 |
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}} |