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.
15 lines
812 B
15 lines
812 B
mixin renderCommentReview (comment)
|
|
article.uk-comment.dtp-site-comment
|
|
header.uk-comment-header
|
|
div(uk-grid).uk-grid-medium.uk-flex-middle
|
|
.uk-width-auto
|
|
if comment.author.picture && comment.author.picture.small
|
|
img(src= `/image/${comment.author.picture.small._id}`).site-profile-picture.sb-small.uk-comment-avatar
|
|
else
|
|
img(src="/img/default-member.png").site-profile-picture.sb-small.uk-comment-avatar
|
|
.uk-width-expand
|
|
h4.uk-comment-title.uk-margin-remove= comment.author.displayName || comment.author.username
|
|
.uk-comment-meta= moment(comment.created).fromNow()
|
|
|
|
.uk-comment-body(class={ 'uk-text-muted': ['removed','mod-removed'].includes(comment.status) })
|
|
.comment-content!= marked.parse(comment.content)
|