Browse Source

comment admin touch-ups

develop
Rob Colbert 10 months ago
parent
commit
d342b8508d
  1. 23
      app/views/admin/comment/components/comment.pug

23
app/views/admin/comment/components/comment.pug

@ -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