15 lines
582 B
Plaintext
Raw Normal View History

2018-10-29 02:56:45 +00:00
component Comments(parent arn.PostParent, user *arn.User)
.thread
.posts
if user != nil
2018-11-01 06:06:04 +00:00
if arn.IsLocked(parent)
2018-10-29 02:56:45 +00:00
footer.footer.mountable
p.text-center= "This " + strings.ToLower(reflect.TypeOf(parent).Elem().Name()) + " is locked."
2018-11-21 09:12:29 +00:00
else if parent.TypeName() != "Group" || parent.(*arn.Group).FindMember(user.ID) != nil
2018-11-15 11:19:40 +00:00
NewPostArea(parent, user, "Comment")
2018-11-23 00:39:09 +00:00
//- if parent.CountPosts() == 0
//- p.no-data.mountable No comments have been written yet.
//- else
each post in parent.PostsRelevantFirst(5)
Postable(post, user, true, "", "")