From d342b8508dc84c72546bc652f300a980dd1a6cf8 Mon Sep 17 00:00:00 2001 From: rob Date: Mon, 19 Jun 2023 03:24:55 -0400 Subject: [PATCH] comment admin touch-ups --- .../admin/comment/components/comment.pug | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/app/views/admin/comment/components/comment.pug b/app/views/admin/comment/components/comment.pug index 2b34262..d480496 100644 --- a/app/views/admin/comment/components/comment.pug +++ b/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') \ No newline at end of file + .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)) \ No newline at end of file