18 lines
420 B
Plaintext
Raw Normal View History

2017-06-26 15:17:53 +02:00
component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User)
h2.thread-title= thread.Title
2016-11-19 17:49:00 +09:00
.thread
.posts
2017-06-22 14:38:01 -03:00
Postable(thread.ToPostable(), thread.Author().ID)
2016-11-19 23:54:31 +09:00
each post in posts
2017-06-22 14:38:01 -03:00
Postable(post.ToPostable(), thread.Author().ID)
2017-06-26 15:17:53 +02:00
// Reply
if user != nil
.post.mountable
.post-author
Avatar(user)
.post-content
textarea(id="new-reply", placeholder="Reply...")