aboutsummaryrefslogtreecommitdiff
path: root/views/home.handlebars
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-05-07 01:16:03 +0200
committerMateja <mail@matejamaric.com>2021-05-07 01:16:03 +0200
commitb99ff3787373aec8b0d679f301609361d39362e4 (patch)
treedc1846939632dc53c4836f8a609182bc2dff5a23 /views/home.handlebars
parent5f58ad7e7b7546077556abd70fca44b296bb0c0c (diff)
downloadnode-playground-b99ff3787373aec8b0d679f301609361d39362e4.tar.gz
node-playground-b99ff3787373aec8b0d679f301609361d39362e4.zip
Change page layout if user is logged in.
Diffstat (limited to 'views/home.handlebars')
-rw-r--r--views/home.handlebars4
1 files changed, 3 insertions, 1 deletions
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 @@
<div class="card-text">
{{{this.text}}}
</div>
- <a href="/remove-post/{{this._id}}" class="badge float-end">Remove</a>
+ {{#if auth}}
+ <a href="/remove-post/{{this._id}}" class="badge float-end">Remove</a>
+ {{/if}}
</div>
</div>
{{/each}}