Fix navigation on login page
This commit is contained in:
parent
5e275b106c
commit
4fcd9770db
|
@ -15,7 +15,11 @@
|
|||
<header class="flex flex-row text-center justify-center pt-1">
|
||||
<nav>
|
||||
<a href="/">home</a>
|
||||
{{ if .session }} <a href="/login">login</a> {{ else }} <a href="/logout">logout</a> {{ end }}
|
||||
{{ if .session }}
|
||||
<form action='/logout' method='post'>
|
||||
<button type='submit'>logout</button>
|
||||
</form>
|
||||
{{ else }} <a href="/login">login</a> {{ end }}
|
||||
</nav>
|
||||
</header>
|
||||
<div class="container flex flex-column text-center justify-center">
|
||||
|
|
Loading…
Reference in New Issue