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/head.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/head.pug')
-rw-r--r-- | views/head.pug | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/head.pug b/views/head.pug index 08f2660..4df5759 100644 --- a/views/head.pug +++ b/views/head.pug @@ -29,6 +29,9 @@ mixin forumpost(row,show_buttons) .body!= row.body if show_buttons && user .edit + if user.user_id === 1 + | #[a(href="/admin/delete-post/"+row.post_id) DELETE] + | if row.author_id === user.user_id | #[a(href="/forum/edit/"+row.post_id) Edit] | |