From b99ff3787373aec8b0d679f301609361d39362e4 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 7 May 2021 01:16:03 +0200 Subject: Change page layout if user is logged in. --- views/home.handlebars | 4 +++- views/layouts/main.handlebars | 51 +++++++++++++++++++++++-------------------- 2 files changed, 30 insertions(+), 25 deletions(-) (limited to 'views') diff --git a/views/home.handlebars b/views/home.handlebars index b0b7d34..7f48f65 100644 --- a/views/home.handlebars +++ b/views/home.handlebars @@ -10,7 +10,9 @@
{{{this.text}}}
- Remove + {{#if auth}} + Remove + {{/if}} {{/each}} diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index 41585e5..800d956 100644 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -24,30 +24,33 @@ Home {{/if}} - - - - + {{#if auth}} + + + {{else}} + + + {{/if}} -- cgit v1.2.3