14 lines
563 B
Plaintext
Raw Normal View History

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