Improved group interface

This commit is contained in:
2018-03-07 01:08:47 +01:00
parent 621155bfcc
commit 999323f850
5 changed files with 28 additions and 16 deletions

View File

@ -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