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:
parent
a3e6df6ce8
commit
961d963677
13 changed files with 160 additions and 102 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue