|
|
|
@ -14,7 +14,7 @@ block content
|
|
|
|
|
|
|
|
|
|
include components/author-credit
|
|
|
|
|
|
|
|
|
|
article(dtp-post-id= post._id)
|
|
|
|
|
article(dtp-post-id= post._id).content-block
|
|
|
|
|
.uk-margin
|
|
|
|
|
h1.article-title= post.title
|
|
|
|
|
|
|
|
|
@ -52,26 +52,29 @@ block content
|
|
|
|
|
.uk-margin
|
|
|
|
|
.uk-article-meta This post was updated on #{moment(post.updated).format('MMMM DD, YYYY, [at] hh:mm a')}.
|
|
|
|
|
|
|
|
|
|
.content-block
|
|
|
|
|
.uk-margin
|
|
|
|
|
h4 Post author
|
|
|
|
|
+renderPostAuthorCredit(post.author)
|
|
|
|
|
+renderSectionTitle('Post author')
|
|
|
|
|
+renderPostAuthorCredit(post.author)
|
|
|
|
|
|
|
|
|
|
if user && post.flags.enableComments && user.permissions.canComment
|
|
|
|
|
+renderSectionTitle('Add a comment')
|
|
|
|
|
|
|
|
|
|
.uk-margin
|
|
|
|
|
+renderCommentComposer(`/post/${post._id}/comment`)
|
|
|
|
|
.content-block
|
|
|
|
|
.uk-margin
|
|
|
|
|
+renderSectionTitle('Add a comment')
|
|
|
|
|
.uk-margin-small
|
|
|
|
|
+renderCommentComposer(`/post/${post._id}/comment`)
|
|
|
|
|
.uk-text-small.uk-text-muted Each site has it's own #[a(href='/policy/terms-of-service') Terms of Service]. Please read it before commenting.
|
|
|
|
|
|
|
|
|
|
if featuredComment
|
|
|
|
|
#featured-comment.uk-margin-large
|
|
|
|
|
.uk-margin
|
|
|
|
|
+renderSectionTitle('Linked Comment')
|
|
|
|
|
+renderComment(featuredComment)
|
|
|
|
|
.content-block
|
|
|
|
|
#featured-comment.uk-margin-large
|
|
|
|
|
.uk-margin
|
|
|
|
|
+renderSectionTitle('Linked Comment')
|
|
|
|
|
+renderComment(featuredComment)
|
|
|
|
|
|
|
|
|
|
.uk-margin
|
|
|
|
|
.content-block
|
|
|
|
|
+renderSectionTitle('Comments')
|
|
|
|
|
|
|
|
|
|
.uk-margin
|
|
|
|
|
if Array.isArray(comments) && (comments.length > 0)
|
|
|
|
|
ul#post-comment-list.uk-list.uk-list-divider.uk-list-large
|
|
|
|
|
+renderCommentList(comments, { countPerPage, rootUrl: `/post/${post.slug}/comment` })
|
|
|
|
|