Added character comments

This commit is contained in:
2018-11-01 15:06:04 +09:00
parent 5866683811
commit 942f45f04d
6 changed files with 19 additions and 7 deletions

View File

@ -8,14 +8,14 @@ component Comments(parent arn.PostParent, user *arn.User)
Postable(post.ToPostable(), user, "", "")
if user != nil
if parent.IsLocked()
if arn.IsLocked(parent)
footer.footer.mountable
p.text-center= "This " + strings.ToLower(reflect.TypeOf(parent).Elem().Name()) + " is locked."
else
NewPostArea(user, "Comment")
.buttons
if !parent.IsLocked()
if !arn.IsLocked(parent)
button.mountable.action(data-action="createPost", data-trigger="click", data-parent-type=reflect.TypeOf(parent).Elem().Name(), data-parent-id=parent.GetID())
Icon("mail-reply")
span Reply