aboutsummaryrefslogtreecommitdiff
path: root/views/manage.html
diff options
context:
space:
mode:
authorFChannel <>2022-06-13 17:58:26 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit5cff4d3740eb8b9f67de9713124e84109d04cff8 (patch)
tree8940203f84ef45e36d3cea414c40ace47152a8ce /views/manage.html
parentcc3e8e57154409469267b0526807a907d5166147 (diff)
admin reported management improvements
Diffstat (limited to 'views/manage.html')
-rw-r--r--views/manage.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/views/manage.html b/views/manage.html
index e51644e..7db9d01 100644
--- a/views/manage.html
+++ b/views/manage.html
@@ -47,9 +47,11 @@
<h4 style="margin: 0; margin-bottom: 5px;">Reported</h4>
<ul style="display: inline-block; padding: 0; margin: 0; list-style-type: none;">
{{ $domain := .page.Domain }}
- {{ range .page.Reported }}
- <li>
- <a id="rpost" post="{{ .ID }}" href="/{{ parseLink $board.Actor .ID }}">{{ shortURL $board.Actor.Outbox .ID }}</a> - <b>{{ .Count }}</b> [<a href="/delete?id={{ .ID }}&board={{ $board.Name }}&manage=t">Remove Post</a>] [<a href="/deleteattach?id={{ .ID }}&board={{ $board.Name }}&manage=t">Remove Attachment</a>] [<a href="/report?id={{ .ID }}&close=1&board={{ $board.Name }}">Close</a>]
+ {{ range .reports }}
+ {{ range . }}
+ <li style="padding: 12px;">
+ <div style="margin-bottom: 5px;">{{ .Object.Updated | timeToReadableLong }}</div>
+ <a id="rpost" post="{{ .ID }}" title="{{ parseLinkTitle .Actor.Outbox .OP .Object.Content}}" href="/{{ parseLink .Actor .ID }}">{{ shortURL .Actor.Outbox .ID }}</a> - <b>{{ .Count }}</b> [<a href="/delete?id={{ .ID }}&board={{ .Actor.Name }}&manage=t">Remove Post</a>] {{ if (index .Object.Attachment 0).Id }} [<a href="/banmedia?id={{ .ID }}&board={{ .Actor.Name }}">Ban Media</a>] [<a href="/deleteattach?id={{ .ID }}&board={{ .Actor.Name }}&manage=t">Remove Attachment</a>]{{ end }} [<a href="/report?id={{ .ID }}&close=1&board={{ .Actor.Name }}">Close</a>]
<ul>
{{ range .Reason }}
<li>
@@ -59,6 +61,7 @@
</ul>
</li>
{{ end }}
+ {{ end }}
</ul>
</div>