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.
 
 
 
 
 

27 lines
965 B

extends ../layout.pug
block head
title #{__('Sessions')}
block content
.board-header
h1.board-title #{__('Active Sessions')}
br
hr(size=1)
h4.mv-5 #{__('Active Sessions')}:
form.form-post.nogrow(action=`/forms/deletesessions` method='POST' enctype='application/x-www-form-urlencoded')
input(type='hidden' name='_csrf' value=csrf)
.table-container.flex-left.text-center
table
tr
th
th #{__('ID')}
th #{__('Expires')}
each session, sessionId in sessions
tr(class=(sessionId === currentSessionKey ? 'bold' : ''))
td: input(type='checkbox', name='checkedsessionids' value=sessionId)
td #{sessionId} #{sessionId === currentSessionKey ? '(current)' : ''}
- const expiryDate = new Date(session.cookie.expires)
td: time.reltime(datetime=expiryDate.toISOString()) #{expiryDate.toLocaleString(pageLanguage, {hourCycle:'h23'})}
h4.mv-5 #{__('Delete Selected')}:
input(type='submit', value=__('Delete'))