You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
include comment
|
|
|
|
|
|
|
|
mixin renderCommentList (comments, options = { })
|
|
|
|
if Array.isArray(comments) && (comments.length > 0)
|
|
|
|
ul#post-comment-list.uk-list.uk-list-divider.uk-list-large
|
|
|
|
each comment in comments
|
|
|
|
li(data-comment-id= comment._id)
|
|
|
|
+renderComment(comment)
|
|
|
|
|
|
|
|
if (comments.length >= options.countPerPage)
|
|
|
|
li#load-more.uk-text-center
|
|
|
|
button(
|
|
|
|
type="button",
|
|
|
|
data-post-id= post._id,
|
|
|
|
data-next-page= pagination.p + 1,
|
|
|
|
data-root-url= options.rootUrl,
|
|
|
|
onclick= `return dtp.app.loadMoreComments(event);`,
|
|
|
|
).uk-button.dtp-button-primary LOAD MORE
|
|
|
|
else
|
|
|
|
ul#post-comment-list.uk-list.uk-list-divider.uk-list-large
|
|
|
|
div There are no comments at this time. Please check back later.
|