aboutsummaryrefslogtreecommitdiff
path: root/views/layouts/main.handlebars
diff options
context:
space:
mode:
Diffstat (limited to 'views/layouts/main.handlebars')
-rw-r--r--views/layouts/main.handlebars17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars
index 9eccc37..41585e5 100644
--- a/views/layouts/main.handlebars
+++ b/views/layouts/main.handlebars
@@ -31,6 +31,23 @@
<a class="nav-link" href="/new-post">New Post</a>
{{/if}}
</li>
+ <li class="nav-item">
+ {{#if login}}
+ <a class="nav-link active" aria-current="page" href="/login">Login</a>
+ {{else}}
+ <a class="nav-link" href="/login">Login</a>
+ {{/if}}
+ </li>
+ <li class="nav-item">
+ {{#if register}}
+ <a class="nav-link active" aria-current="page" href="/register">Register</a>
+ {{else}}
+ <a class="nav-link" href="/register">Register</a>
+ {{/if}}
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" href="/logout">Logout</a>
+ </li>
</ul>
</div>
</div>