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/forum_thread.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/forum_thread.pug')
-rw-r--r-- | views/forum_thread.pug | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/views/forum_thread.pug b/views/forum_thread.pug index 3ed117e..be3f0f4 100644 --- a/views/forum_thread.pug +++ b/views/forum_thread.pug @@ -13,4 +13,7 @@ html +forumpost(row,1) if user - p: a(href="/forum/reply/"+posts[0].post_id) Reply + if posts.length > 0 + p: a(href="/forum/reply/"+posts[0].post_id) Reply + if user.user_id === 1 + p: a(href="/admin/delete-thread/"+thread.thread_id) DELETE THREAD |