Merge pull request #79 from soulcramer/Delete_Thread_#44
✨ Added a delete action button next to the reply button on a thread
This commit is contained in:
commit
e747e6e480
@ -21,3 +21,8 @@ component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User)
|
|||||||
button.action(data-action="forumReply", data-trigger="click")
|
button.action(data-action="forumReply", data-trigger="click")
|
||||||
Icon("mail-reply")
|
Icon("mail-reply")
|
||||||
span Reply
|
span Reply
|
||||||
|
if user.Role == "admin" || user.Role == "editor"
|
||||||
|
button.action(data-action="deleteObject", data-trigger="click", data-return-path="/forum", data-confirm-type="thread", data-api="/api/thread/" + thread.ID)
|
||||||
|
Icon("trash")
|
||||||
|
span Delete
|
||||||
|
|
Loading…
Reference in New Issue
Block a user