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">
|
<header class="flex flex-row text-center justify-center pt-1">
|
||||||
<nav>
|
<nav>
|
||||||
<a href="/">home</a>
|
<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>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<div class="container flex flex-column text-center justify-center">
|
<div class="container flex flex-column text-center justify-center">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user