diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-08-02 12:20:00 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-08-02 12:57:55 +0200 |
commit | 5c1d5d9c2a74502e40f67ef47337a97349be0d0d (patch) | |
tree | ccbc75c0511484708955b5a8772c14b8d24f4c89 /views/user.pug | |
parent | caa863f358209117260911b88dca65a95948605d (diff) | |
download | server-5c1d5d9c2a74502e40f67ef47337a97349be0d0d.tar.gz |
Moderation tools for admin user.
Ban and unban users.
Delete forum posts and threads.
Diffstat (limited to 'views/user.pug')
-rw-r--r-- | views/user.pug | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/user.pug b/views/user.pug index fb98da7..c28fbd0 100644 --- a/views/user.pug +++ b/views/user.pug @@ -38,3 +38,9 @@ html +gamelist(finished_games) p <a href="/games/finished/#{who.name}">All #{who.name}'s finished games</a> + + if user && user.user_id === 1 + if who.is_banned + p <a href="/admin/unban-user/#{who.name}">UNBAN USER</a> + else + p <a href="/admin/ban-user/#{who.name}">BAN USER</a> |