@ -42,6 +42,7 @@ class CommentService extends SiteService {
{
path: 'author',
select: '_id username username_lc displayName picture',
strictPopulate: false,
},
],
@ -23,7 +23,7 @@ block content
.uk-width-auto
.uk-inline
button(type="button").uk-button.uk-button-link.uk-button-small
i.fas.fa-ellipsis-h
i.fas.fa-ellipsis-v
#chat-room-menu(uk-dropdown={ pos: 'bottom-right', mode: 'click' })
ul.uk-nav.uk-nav-default.uk-dropdown-nav
li
@ -19,7 +19,7 @@ mixin renderComment (comment, options)
button(type="button").uk-button.uk-button-link
span
div(data-comment-id= comment._id, uk-dropdown={ mode: 'click', pos: 'bottom-right' })
ul.uk-nav.uk-dropdown-nav
if user && user._id.equals(comment.author._id)
@ -24,4 +24,8 @@ block content
alert.uk-label= badge
p Welcome to #[+renderSiteLink()]. This app/site really doesn't do anything at all other than provide everything needed for building distributed communities of web applications that all talk to each other and share information in new and easy ways.
h2 Recent Comments
ul.uk-list
each comment in commentHistory
+renderComment(comment, { })