Forum improvements
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
component Thread(thread *arn.Thread, posts []*arn.Post)
|
||||
component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User)
|
||||
h2.thread-title= thread.Title
|
||||
|
||||
.thread
|
||||
@ -7,3 +7,12 @@ component Thread(thread *arn.Thread, posts []*arn.Post)
|
||||
|
||||
each post in posts
|
||||
Postable(post.ToPostable(), thread.Author().ID)
|
||||
|
||||
// Reply
|
||||
if user != nil
|
||||
.post.mountable
|
||||
.post-author
|
||||
Avatar(user)
|
||||
|
||||
.post-content
|
||||
textarea(id="new-reply", placeholder="Reply...")
|
Reference in New Issue
Block a user