From 682afcf38ed8d0e87aa7296609070a10e81f990c Mon Sep 17 00:00:00 2001 From: Mark Tyers Date: Wed, 25 Mar 2020 15:30:20 +0000 Subject: [PATCH] Minor Fixes --- routes/public.js | 2 +- views/index.handlebars | 8 ++++---- views/register.handlebars | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/routes/public.js b/routes/public.js index 60098ef..cf176dd 100644 --- a/routes/public.js +++ b/routes/public.js @@ -17,7 +17,7 @@ router.get('/', async ctx => { try { await ctx.render('index', ctx.hbs) } catch(err) { - await ctx.render('error', {message: err.message}) + await ctx.render('error', ctx.hbs) } }) diff --git a/views/index.handlebars b/views/index.handlebars index ff031dc..f5dfbba 100644 --- a/views/index.handlebars +++ b/views/index.handlebars @@ -13,10 +13,10 @@

Home

{{#if authorised}} - log out - {{else}} - log in - {{/if}} + log out + {{else}} + log in + {{/if}}
{{#if msg}}

{{msg}}

diff --git a/views/register.handlebars b/views/register.handlebars index 724a62e..69e90ea 100644 --- a/views/register.handlebars +++ b/views/register.handlebars @@ -21,15 +21,15 @@


- +


- +


- +