18 lines
665 B
Plaintext
Raw Normal View History

2018-03-07 00:08:47 +00:00
component NewPostArea(user *arn.User, placeholder string)
2018-11-05 11:57:37 +00:00
#new-post.post.mountable
2018-11-05 10:05:36 +00:00
.post-parent
.post-author
Avatar(user)
2018-11-05 11:57:37 +00:00
textarea#new-post-text.post-content(placeholder=placeholder + "...", aria-label=placeholder)
2018-11-05 12:04:47 +00:00
component NewPostActions(parentType string, parentID string, cancelButton bool)
2018-11-05 11:57:37 +00:00
#new-post-actions.buttons
button#reply-button.mountable.action(data-action="createPost", data-trigger="click", data-parent-type=parentType, data-parent-id=parentID)
Icon("mail-reply")
span Reply
2018-11-05 12:04:47 +00:00
if cancelButton
button#reply-cancel-button.mountable.action(data-action="cancelReply", data-trigger="click")
Icon("close")
span Cancel