1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-13 08:43:07 +00:00

Some iprovements idfk

Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2025-01-27 23:34:46 -05:00
parent a3e6df6ce8
commit 961d963677
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
13 changed files with 160 additions and 102 deletions

View file

@ -1,7 +1,22 @@
extends site.pug
include _util.pug
block content
h1 Admin Panel
p Don't Be Evil
h2 Users
table
tbody
tr
th UID
th Name
th Status
for user of userTable
tr
td!= user.id.toString()
td
a(href=`/users/${user.uname}`)= user.uname
td= user.status.toString(2).padStart(4, "0")
h2 Invite codes
form(action="/codes/delete", method="post")
table
@ -14,12 +29,7 @@ block content
- const timestamp = code.expires.getTime()
tr
td= code.token
if timestamp === 0
td.subtle never
else if Date.now() >= timestamp
td.error EXPIRED
else
td= code.expiresString
+invite_code_expiration(code)
td
a(href=`/users/${code.uname}`)= code.uname
td