diff options
author | FChannel <> | 2022-06-13 17:58:26 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 5cff4d3740eb8b9f67de9713124e84109d04cff8 (patch) | |
tree | 8940203f84ef45e36d3cea414c40ace47152a8ce /views/admin.html | |
parent | cc3e8e57154409469267b0526807a907d5166147 (diff) |
admin reported management improvements
Diffstat (limited to 'views/admin.html')
-rw-r--r-- | views/admin.html | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/views/admin.html b/views/admin.html index 2b733b5..3444657 100644 --- a/views/admin.html +++ b/views/admin.html @@ -14,10 +14,10 @@ </select> </form> <ul style="display: inline-block; padding: 0;"> + <li style="display: inline-block;">[<a href="#reported">Reported</a>]</li> <li style="display: inline-block;">[<a href="#news">Create News</a>]</li> <li style="display: inline-block;">[<a href="#regex">Post Blacklist</a>]</li> <!-- <li style="display: inline-block;"><a href="javascript:show('followers')">Followers</a></li> --> - <!-- <li style="display: inline-block;"><a href="#reported">Reported</a></li> --> </ul> </div> @@ -45,6 +45,29 @@ </ul> </div> +<div id="reported" class="box2" style="margin-bottom: 25px; padding: 12px;"> + <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 .reports }} + <h4 style="margin: 0;"><a href="{{ print $domain "/" (index . 0).Actor.Name }}">/{{ (index . 0).Actor.Name }}/</a></h4> + {{ 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> + <span>"{{ . }}" </span> + </li> + {{ end }} + </ul> + </li> + {{ end }} + {{ end }} + </ul> +</div> + <div class="box2" style="margin-bottom: 25px; padding: 12px;"> <h3>Create News</h3> <form id="news" action="/{{ .page.Key }}/newspost" method="post" enctype="application/x-www-form-urlencoded"> |