aboutsummaryrefslogtreecommitdiff
path: root/static/posts.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/posts.html')
-rw-r--r--static/posts.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/static/posts.html b/static/posts.html
index 194c273..a086bdb 100644
--- a/static/posts.html
+++ b/static/posts.html
@@ -34,7 +34,7 @@
if(isOnion("{{ .Id }}")) {
sensitive = document.getElementById("sensitive-{{ .Id }}")
- document.getElementById("sensitive-img-{{ .Id }}").src = "/static/clover.png"
+ document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png"
document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Node"
hide = document.getElementById("hide-{{ .Id }}")
sensitive.onclick = function(){document.getElementById("media-{{ .Id }}").style="display: block;"; document.getElementById("sensitive-{{ .Id }}").style="display: none;"; document.getElementById("hide-{{ .Id }}").style="display: block; cursor: pointer;"}
@@ -107,10 +107,8 @@
<a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">[Mark Sensitive]</a>
{{ end }}
<span style="display: block;">File <a id="{{ .Id }}-img" href="{{ (index .Attachment 0).Href}}">{{ (index .Attachment 0).Name }}</a> <span id="{{ .Id }}-size">({{ (index .Attachment 0).Size }})</span></span>
- {{ if and .Sensitive $board.Actor.Restricted }}
<div id="hide-{{ .Id }}" style="display: none;">[Hide]</div>
<div id="sensitive-{{ .Id }}" style="display: none;"><div style="position: relative; text-align: center;"><img style="float: left; margin-right: 10px; margin-bottom: 10px; max-width: 250px; max-height: 250px;" src="/static/sensitive.png"><div style="width: 240px; position: absolute; margin-top: 110px; padding: 5px; background-color: black; color: white; cursor: default; ">NSFW Content</div></div></div>
- {{ end }}
<div> </div>
<div id="media-{{ .Id }}" sensitive="0"></div>
<script>
@@ -127,7 +125,7 @@
if(isOnion("{{ .Id }}")) {
sensitive = document.getElementById("sensitive-{{ .Id }}")
- document.getElementById("sensitive-img-{{ .Id }}").src = "/static/clover.png"
+ document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png"
document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Node"
hide = document.getElementById("hide-{{ .Id }}")
sensitive.onclick = function(){document.getElementById("media-{{ .Id }}").style="display: block;"; document.getElementById("sensitive-{{ .Id }}").style="display: none;"; document.getElementById("hide-{{ .Id }}").style="display: block; cursor: pointer;"}