Forum improvements

This commit is contained in:
2017-06-26 15:17:53 +02:00
parent d197fb30fb
commit 8c19f0be72
10 changed files with 67 additions and 24 deletions

View File

@ -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...")