Merge branch 'develop' of git.digitaltelepresence.com:digital-telepresence/dtp-base into develop

master
rob 11 months ago
commit a0bfa38fd9

@ -1,6 +1,6 @@
mixin renderComment (comment)
article(data-comment-id= comment._id).uk-comment.dtp-site-comment
header.uk-comment-header
div(data-comment-id= comment._id).uk-card.uk-card-default.uk-card-small.dtp-site-comment.uk-border-rounded
.uk-card-header
div(uk-grid).uk-grid-medium.uk-flex-middle
.uk-width-auto
if comment.author.picture && comment.author.picture.small
@ -12,7 +12,7 @@ mixin renderComment (comment)
h4.uk-comment-title.uk-margin-remove= comment.author.displayName || comment.author.username
.uk-comment-meta= moment(comment.created).fromNow()
.uk-comment-body
.uk-card-body
case comment.status
when 'published'
if comment.flags && comment.flags.isNSFW
@ -39,12 +39,11 @@ mixin renderComment (comment)
.comment-content.uk-text-muted [comment removed]
//- Comment meta bar
div(uk-grid).uk-grid-small
.uk-width-auto
+renderLabeledIcon('fa-chevron-up', formatCount(comment.resourceStats.upvoteCount))
.uk-width-auto
+renderLabeledIcon('fa-chevron-down', formatCount(comment.resourceStats.downvoteCount))
.uk-width-auto
+renderLabeledIcon('fa-comment', formatCount(comment.commentStats.replyCount))
.uk-width-auto
+renderLabeledIcon('fa-reply', 'reply')
.uk-card-footer
div(uk-grid).uk-grid-small.uk-text-small.uk-text-muted
.uk-width-auto
+renderLabeledIcon('fa-chevron-up', formatCount(comment.resourceStats.upvoteCount))
.uk-width-auto
+renderLabeledIcon('fa-chevron-down', formatCount(comment.resourceStats.downvoteCount))
.uk-width-auto
+renderLabeledIcon('fa-comment', formatCount(comment.commentStats.replyCount))
Loading…
Cancel
Save