2024-12-11 03:27:43 +00:00
|
|
|
extends site.pug
|
2025-01-28 04:34:46 +00:00
|
|
|
include _util.pug
|
2024-12-11 03:27:43 +00:00
|
|
|
|
|
|
|
block content
|
|
|
|
h1 Admin Panel
|
2025-01-28 04:34:46 +00:00
|
|
|
p Don't Be Evil
|
|
|
|
h2 Users
|
2025-01-29 04:31:31 +00:00
|
|
|
p
|
|
|
|
| Selected:
|
|
|
|
strong#user-selected [none]
|
|
|
|
table#users
|
2025-01-28 04:34:46 +00:00
|
|
|
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")
|
2025-01-29 04:31:31 +00:00
|
|
|
br
|
|
|
|
form(action="#", method="post", data-url="/users/{}/edit?param=status&status=4")
|
|
|
|
button#btn-trust Trust
|
|
|
|
button#btn-ban Ban
|
|
|
|
form(action="#", method="post", data-url="/users/{}/edit?param=status&status=0")
|
|
|
|
button#btn-reset Revoke all stati
|
|
|
|
h2(style="margin-top:1em;") Invite codes
|
2025-01-28 22:05:54 +00:00
|
|
|
p Well Rae. You've made quite a The Closed Beta.
|
2024-12-25 23:44:29 +00:00
|
|
|
form(action="/codes/delete", method="post")
|
2024-12-11 03:27:43 +00:00
|
|
|
table
|
|
|
|
tbody
|
|
|
|
tr
|
|
|
|
th Token
|
|
|
|
th Expires
|
|
|
|
th Creator
|
|
|
|
for code of codes
|
|
|
|
- const timestamp = code.expires.getTime()
|
|
|
|
tr
|
|
|
|
td= code.token
|
2025-01-28 04:34:46 +00:00
|
|
|
+invite_code_expiration(code)
|
2024-12-11 03:27:43 +00:00
|
|
|
td
|
|
|
|
a(href=`/users/${code.uname}`)= code.uname
|
|
|
|
td
|
|
|
|
button(type="submit", name="token", value=code.token) Delete
|
|
|
|
form(action="/mod/codes/prune", method="post")
|
|
|
|
button(type="submit") Prune
|
|
|
|
br
|
2024-12-25 23:44:29 +00:00
|
|
|
form(action="/codes/create", method="post")
|
2024-12-11 03:27:43 +00:00
|
|
|
input(type="datetime-local", name="expiration")
|
|
|
|
button(type="submit") Create
|
2025-01-29 04:31:31 +00:00
|
|
|
script(src="/js/admin.js", nonce=nonce)
|