Browse Source

small fixes & touch-ups

pull/2/head
Rob Colbert 3 years ago
parent
commit
c78a14fc6d
  1. 1
      app/services/comment.js
  2. 2
      app/views/chat/room/view.pug
  3. 2
      app/views/comment/components/comment.pug
  4. 6
      app/views/user/profile.pug

1
app/services/comment.js

@ -42,6 +42,7 @@ class CommentService extends SiteService {
{ {
path: 'author', path: 'author',
select: '_id username username_lc displayName picture', select: '_id username username_lc displayName picture',
strictPopulate: false,
}, },
], ],
}, },

2
app/views/chat/room/view.pug

@ -23,7 +23,7 @@ block content
.uk-width-auto .uk-width-auto
.uk-inline .uk-inline
button(type="button").uk-button.uk-button-link.uk-button-small 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' }) #chat-room-menu(uk-dropdown={ pos: 'bottom-right', mode: 'click' })
ul.uk-nav.uk-nav-default.uk-dropdown-nav ul.uk-nav.uk-nav-default.uk-dropdown-nav
li li

2
app/views/comment/components/comment.pug

@ -19,7 +19,7 @@ mixin renderComment (comment, options)
.uk-width-auto .uk-width-auto
button(type="button").uk-button.uk-button-link button(type="button").uk-button.uk-button-link
span span
i.fas.fa-ellipsis-h i.fas.fa-ellipsis-v
div(data-comment-id= comment._id, uk-dropdown={ mode: 'click', pos: 'bottom-right' }) div(data-comment-id= comment._id, uk-dropdown={ mode: 'click', pos: 'bottom-right' })
ul.uk-nav.uk-dropdown-nav ul.uk-nav.uk-dropdown-nav
if user && user._id.equals(comment.author._id) if user && user._id.equals(comment.author._id)

6
app/views/user/profile.pug

@ -24,4 +24,8 @@ block content
.uk-width-auto .uk-width-auto
alert.uk-label= badge 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
li
+renderComment(comment, { })
Loading…
Cancel
Save