Added comments to AMVs

This commit is contained in:
2018-10-29 12:35:38 +09:00
parent 8191ebaa70
commit c090b6970c
4 changed files with 22 additions and 47 deletions

View File

@ -1,8 +1,11 @@
component Comments(parent arn.PostParent, user *arn.User)
.thread
.posts
each post in parent.Posts()
Postable(post.ToPostable(), user, "")
if user == nil && parent.CountPosts() == 0
p.no-data.mountable No comments have been written yet.
else
each post in parent.Posts()
Postable(post.ToPostable(), user, "")
if user != nil
if parent.IsLocked()