From 5c1d5d9c2a74502e40f67ef47337a97349be0d0d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 2 Aug 2022 12:20:00 +0200 Subject: Moderation tools for admin user. Ban and unban users. Delete forum posts and threads. --- views/head.pug | 3 +++ 1 file changed, 3 insertions(+) (limited to 'views/head.pug') 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] | -- cgit v1.2.3