jschan - Anonymous imageboard software. Classic look, modern features and feel. Works without JavaScript and supports Tor, I2P, Lokinet, etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

extends ../layout.pug
include ../mixins/ban.pug
include ../mixins/globalmanagenav.pug
block head
script(src='/js/all.js')
title Manage
block content
h1.board-title Global Management
br
+globalmanagenav('logs')
hr(size=1)
.form-wrapper.flexleft
h4.no-m-p Search:
form.form-post.mv-5(action=`/globalmanage/globallogs.html` method='GET')
input(type='hidden' value=page)
.row
.label Board URI
input(type='text' name='uri' value=uri)
.row
.label Username
input(type='text' name='username' value=username)
.row
.label IP
input(type='text' name='ip' value=ip)
input(type='submit', value='Filter')
h4.no-m-p Global Logs:
if logs && logs.length > 0
.table-container.flex-center.mv-10.text-center
table.fw
tr
th Date
th Board
th User
th IP
th Actions
th Post IDs
th Log Message
for log in logs
tr
- const logDate = new Date(log.date);
td: time.reltime(datetime=logDate.toISOString()) #{logDate.toLocaleString(undefined, {hour12:false})}
td
a(href=`/${log.board}/index.html`) /#{log.board}/
|
a(href=`?uri=${log.board}`) [+]
td
if log.user !== 'Unregistered User'
a(href=`accounts.html?username=${log.user}`) #{log.user}
else
| #{log.user}
|
a(href=`?username=${log.user}`) [+]
td
- const ipSub = log.ip.slice(-10);
a(href=`recent.html?ip=${encodeURIComponent(ipSub)}`) #{ipSub}
|
a(href=`?ip=${encodeURIComponent(ipSub)}`) [+]
td #{log.actions}
td #{log.postIds}
td #{log.message || '-'}
.pages.mv-5
include ../includes/pages.pug
else
p No logs.