Improved group interface
This commit is contained in:
@ -10,19 +10,14 @@ component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User)
|
||||
|
||||
// Reply
|
||||
if user != nil
|
||||
.post.mountable
|
||||
.post-author
|
||||
Avatar(user)
|
||||
|
||||
.post-content
|
||||
textarea#new-reply(placeholder="Reply...", aria-label="Reply")
|
||||
NewPostArea(user, "Reply")
|
||||
|
||||
.buttons
|
||||
button.action(data-action="forumReply", data-trigger="click")
|
||||
Icon("mail-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
|
||||
|
||||
span Delete
|
Reference in New Issue
Block a user