diff options
author | Mateja <mail@matejamaric.com> | 2021-05-06 21:07:24 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-05-06 21:07:24 +0200 |
commit | 376fae2a3367d5813d088a29c5a62938bd55f762 (patch) | |
tree | 3812cbf552d90024550cc2e88e0ba2cf4927f191 /views/layouts | |
parent | e0f29f19df909b7a49ac693d82ba5ff085d079a2 (diff) | |
download | node-playground-376fae2a3367d5813d088a29c5a62938bd55f762.tar.gz node-playground-376fae2a3367d5813d088a29c5a62938bd55f762.zip |
Boilerplate for login system.
Diffstat (limited to 'views/layouts')
-rw-r--r-- | views/layouts/main.handlebars | 17 |
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> |