18 lines
420 B
Plaintext
18 lines
420 B
Plaintext
component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User)
|
|
h2.thread-title= thread.Title
|
|
|
|
.thread
|
|
.posts
|
|
Postable(thread.ToPostable(), thread.Author().ID)
|
|
|
|
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...") |