small touch-ups

master
rob 3 years ago
parent 32fbcb587f
commit 72ea64fbd7

@ -57,7 +57,7 @@ class PostController extends SiteController {
}
}
async postUpdateImage (req, res, next) {
async postUpdateImage (req, res) {
const { post: postService } = this.dtp.services;
try {
const displayList = this.createDisplayList('post-image');

@ -71,6 +71,7 @@ class HomeController extends SiteController {
res.locals.pagination = this.getPaginationParameters(req, 20);
res.locals.featuredPosts = await postService.getFeaturedPosts(3);
res.locals.posts = await postService.getPosts(res.locals.pagination);
res.render('index');
} catch (error) {
return next(error);

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

@ -6,9 +6,6 @@ block content
h1 Well, That's Not Right!
.uk-text-large= message
//- if error.stack
//- pre= error.stack
if error && error.status
div.uk-text-small.uk-text-muted status:#{error.status}

Loading…
Cancel
Save