16 lines
417 B
Cheetah
16 lines
417 B
Cheetah
{{define "partial:nav"}}
|
|
<nav>
|
|
{{if .AuthenticatedUser}}
|
|
<form method="POST" action="/logout">
|
|
<input type='hidden' name='csrf_token' value='{{.CSRFToken}}'>
|
|
{{.AuthenticatedUser.Email}}
|
|
·
|
|
<button class="link">Logout</button>
|
|
</form>
|
|
{{else}}
|
|
<a href="/signup">Signup</a>
|
|
<a href="/login">Login</a>
|
|
{{end}}
|
|
</nav>
|
|
{{end}}
|