|
|
|
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, {hour12:false})}
|
|
|
|
td
|
|
|
|
| #{log.user}
|
|
|
|
|
|
|
|
|
a(href=`?username=${log.user}`) [+]
|
|
|
|
td
|
|
|
|
- const logIp = permLevel > ipHashPermLevel ? log.ip.single.slice(-10) : 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.
|