diff options
author | FChannel <> | 2021-06-19 19:04:43 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-19 19:04:43 -0700 |
commit | b4f7d00ad9d13f96323366ded2eb7702e37f6e52 (patch) | |
tree | 8a62817f7d1f70131533c2ab96f91270e0ad64db /static/posts.html | |
parent | 6b265b0a8c2e45422f4a4601e041d44e5cef1c1b (diff) |
admin can mark objects as senstive
Diffstat (limited to 'static/posts.html')
-rw-r--r-- | static/posts.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/static/posts.html b/static/posts.html index a6cac44..1b1d78b 100644 --- a/static/posts.html +++ b/static/posts.html @@ -96,8 +96,10 @@ <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 id="media-{{ .Id }}" sensitive="0"></div> <script> media = document.getElementById("media-{{ .Id }}") |