summaryrefslogtreecommitdiff
path: root/views/head.pug
diff options
context:
space:
mode:
Diffstat (limited to 'views/head.pug')
-rw-r--r--views/head.pug3
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]
|