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; const { post: postService } = this.dtp.services;
try { try {
const displayList = this.createDisplayList('post-image'); const displayList = this.createDisplayList('post-image');

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

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

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

Loading…
Cancel
Save