lots of little touch-ups

master
rob 3 years ago
parent 0ff28c7226
commit a934c018d0

@ -23,7 +23,7 @@ class ContentReportController extends SiteController {
const router = express.Router();
router.use(async (req, res, next) => {
res.locals.currentView = 'admin';
res.locals.adminView = 'host';
res.locals.adminView = 'content-report';
return next();
});

@ -303,7 +303,7 @@ class UserService {
async getUserAccount (userId) {
const user = await User
.findById(userId)
.select('+email +flags +permissions')
.select('+email +flags +permissions +picture')
.populate(this.populateUser)
.lean();
if (!user) {

@ -12,7 +12,7 @@ block content
button(type="submit").uk-button.uk-button-secondary.uk-light Search
.uk-overflow-auto
table.uk-table.uk-table-divider.uk-table-hover.uk-table-small.uk-table-justify
table.uk-table.uk-table-divider.uk-table-small.uk-table-justify
thead
th Username
th Display Name

@ -4,7 +4,10 @@ mixin renderCommentReview (comment)
header.uk-comment-header
div(uk-grid).uk-grid-medium.uk-flex-middle
.uk-width-auto
img(src="/img/default-member.png").site-profile-picture.sb-small.uk-comment-avatar
if 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()

@ -4,7 +4,10 @@ mixin renderComment (comment)
header.uk-comment-header
div(uk-grid).uk-grid-medium.uk-flex-middle
.uk-width-auto
img(src="/img/default-member.png").site-profile-picture.sb-small.uk-comment-avatar
if 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

@ -38,9 +38,9 @@ nav(uk-navbar).uk-navbar-container.uk-position-fixed.uk-position-top
.uk-navbar-item
if user
div.no-select
if user.picture_url
if user.picture.small
img(
src= user.picture_url,
src= `/image/${user.picture.small._id}`,
title="Member Menu",
).site-profile-picture.sb-navbar
else

Loading…
Cancel
Save