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.

58 lines
1.5 KiB

extends ../layout.pug
include ../mixins/post.pug
include ../mixins/ban.pug
include ../mixins/managenav.pug
include ../mixins/boardheader.pug
block head
title /#{board._id}/ - Manage
block content
+boardheader('Logs')
br
+managenav('logs')
hr(size=1)
.form-wrapper.flexleft
h4.no-m-p Search:
form.form-post.mv-5(action=`/${board._id}/manage/logs.html` method='GET')
input(type='hidden' value=page)
.row
.label Username
input(type='text' name='username' value=username)
input(type='submit', value='Filter')
h4.no-m-p Logs:
if logs && logs.length > 0
.table-container.flex-center.mv-10.text-center
table.fw
tr
th Date
th User
th IP
th Actions
th Posts
th Log Message
for log in logs
tr
- const logDate = new Date(log.date);
td: time.reltime(datetime=logDate.toISOString()) #{logDate.toLocaleString(undefined, {hourCycle:'h23'})}
td
| #{log.user}
|
a(href=`?username=${log.user}`) [+]
td
- const logIp = permLevel > ipHashPermLevel ? log.ip.cloak : log.ip.raw;
| #{logIp}
td #{log.actions}
td
if log.showLinks
for postLink in log.postLinks
a(href=`/${board._id}/manage/thread/${postLink.thread || postLink.postId}.html#${postLink.postId}`) >>#{postLink.postId}
|
else
| #{log.postLinks.map(l => l.postId)}
td #{log.message || '-'}
.pages.mv-5
include ../includes/pages.pug
else
p No logs.