2023-09-18 00:26:42 +01:00
|
|
|
<nav>
|
|
|
|
<ul>
|
|
|
|
<li>
|
2023-09-19 13:39:59 +01:00
|
|
|
<a hx-get="/" hx-headers='{"REQUEST-TYPE": "htmlfull"}' hx-push-url="true" hx-swap="outerHTML" hx-target=".app">
|
|
|
|
Index
|
2023-09-18 00:26:42 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2023-09-19 13:39:59 +01:00
|
|
|
<li class="expand"></li>
|
|
|
|
{{ if .Context.User }}
|
|
|
|
<li>
|
|
|
|
<a hx-get="/logout" hx-headers='{"REQUEST-TYPE": "htmlfull"}' hx-push-url="true" hx-swap="outerHTML" hx-target=".app">
|
|
|
|
Logout
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{else}}
|
|
|
|
<li>
|
|
|
|
<a hx-get="/login" hx-headers='{"REQUEST-TYPE": "htmlfull"}' hx-push-url="true" hx-swap="outerHTML" hx-target=".app">
|
|
|
|
Login
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2023-09-18 00:26:42 +01:00
|
|
|
</ul>
|
|
|
|
</nav>
|