mirror of
https://git.sr.ht/~roxwize/mipilin
synced 2025-05-13 08:43:07 +00:00
admining
Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
parent
65c29b0564
commit
ccc894dc33
10 changed files with 111 additions and 41 deletions
|
@ -5,7 +5,10 @@ block content
|
|||
h1 Admin Panel
|
||||
p Don't Be Evil
|
||||
h2 Users
|
||||
table
|
||||
p
|
||||
| Selected:
|
||||
strong#user-selected [none]
|
||||
table#users
|
||||
tbody
|
||||
tr
|
||||
th UID
|
||||
|
@ -17,7 +20,13 @@ block content
|
|||
td
|
||||
a(href=`/users/${user.uname}`)= user.uname
|
||||
td= user.status.toString(2).padStart(4, "0")
|
||||
h2 Invite codes
|
||||
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
|
||||
p Well Rae. You've made quite a The Closed Beta.
|
||||
form(action="/codes/delete", method="post")
|
||||
table
|
||||
|
@ -41,3 +50,4 @@ block content
|
|||
form(action="/codes/create", method="post")
|
||||
input(type="datetime-local", name="expiration")
|
||||
button(type="submit") Create
|
||||
script(src="/js/admin.js", nonce=nonce)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue