aboutsummaryrefslogtreecommitdiff
path: root/static/ncatalog.html
diff options
context:
space:
mode:
authorFChannel <>2021-07-31 11:42:59 -0700
committerFChannel <>2021-07-31 11:42:59 -0700
commitac288d40da3235b9382d685c9958ad167a758bcd (patch)
tree676b11c79625a0ec5a6a0c6a52b94f89e1fe72e8 /static/ncatalog.html
parentf0ce5bc6d4146bc1191b8f8428c387a9085217e5 (diff)
added archive page and viewing
Diffstat (limited to 'static/ncatalog.html')
-rw-r--r--static/ncatalog.html24
1 files changed, 13 insertions, 11 deletions
diff --git a/static/ncatalog.html b/static/ncatalog.html
index c7f5b30..8ce418a 100644
--- a/static/ncatalog.html
+++ b/static/ncatalog.html
@@ -19,25 +19,26 @@
<hr>
<ul style="margin: 0; padding: 0; display: inline">
<li style="display: inline"><a href="/{{ $board.Name }}">[Return]</a></li>
+ <li style="display: inline"><a href="/{{ $board.Name }}/archive">[Archive]</a></li>
<li style="display: inline"><a href="#bottom">[Bottom]</a></li>
<li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li>
-</ul>
+</ul>
<hr>
<div style="padding: 10px; text-align: center;">
{{ range .Posts }}
<div style="overflow: hidden; vertical-align: top; padding-right: 24px; padding-bottom: 24px; display: inline-block; width: 180px; max-height: 320px; margin-bottom: 10px;">
- {{ if eq $board.ModCred $board.Domain $board.Actor.Id }}
+ {{ if eq $board.ModCred $board.Domain $board.Actor.Id }}
<a href="/delete?id={{ .Id }}&board={{ $board.Actor.Name }}">[Delete Post]</a>
{{ end }}
{{ if .Attachment }}
- {{ if eq $board.ModCred $board.Domain $board.Actor.Id }}
+ {{ if eq $board.ModCred $board.Domain $board.Actor.Id }}
<a href="/deleteattach?id={{ .Id }}&board={{ $board.Actor.Name }}">[Delete Attachment]</a>
- <a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">[Mark Sensitive]</a>
- {{ end }}
+ <a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">[Mark Sensitive]</a>
+ {{ end }}
<div id="hide-{{ .Id }}" style="display: none;">[Hide]</div>
- <div id="sensitive-{{ .Id }}" style="display: none;"><div style="position: relative; text-align: center;"><img id="sensitive-img-{{ .Id }}" style="float: left; margin-right: 10px; margin-bottom: 10px; max-width: 180px; max-height: 180px;" src="/static/sensitive.png"><div id="sensitive-text-{{ .Id }}" style="width: 170px; position: absolute; margin-top: 75px; padding: 5px; background-color: black; color: white; cursor: default; ">NSFW Content</div></div></div>
- <a id="{{ .Id }}-anchor" href="/{{ $board.Name }}/{{ short $board.Actor.Outbox .Id}}">
+ <div id="sensitive-{{ .Id }}" style="display: none;"><div style="position: relative; text-align: center;"><img id="sensitive-img-{{ .Id }}" style="float: left; margin-right: 10px; margin-bottom: 10px; max-width: 180px; max-height: 180px;" src="/static/sensitive.png"><div id="sensitive-text-{{ .Id }}" style="width: 170px; position: absolute; margin-top: 75px; padding: 5px; background-color: black; color: white; cursor: default; ">NSFW Content</div></div></div>
+ <a id="{{ .Id }}-anchor" href="/{{ $board.Name }}/{{ short $board.Actor.Outbox .Id}}">
<div id="media-{{ .Id }}" style="width:180px;"> {{ parseAttachment . true }}</div>
</a>
<script>
@@ -59,9 +60,9 @@
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;"}
hide.onclick = function(){document.getElementById("media-{{ .Id }}").style="display: none;"; document.getElementById("sensitive-{{ .Id }}").style="display: block;"; document.getElementById("hide-{{ .Id }}").style="display: none;"}
sensitive.style = "display: block"
- media.style = "display: none;"
- }
- </script>
+ media.style = "display: none;"
+ }
+ </script>
{{ end }}
<a id="{{ .Id }}-link" href="/{{ $board.Name }}/{{ short $board.Actor.Outbox .Id }}">
<div>
@@ -84,10 +85,11 @@
<hr>
<ul style="margin: 0; padding: 0; display: inline">
<li style="display: inline"><a href="/{{ $board.Name }}">[Return]</a></li>
+ <li style="display: inline"><a href="/{{ $board.Name }}/archive">[Archive]</a></li>
<li style="display: inline"><a id="bottom" href="#top">[Top]</a></li>
<li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li>
</ul>
-<hr>
+<hr>
{{ end }}
{{ define "bottom" }}
{{ end }}