added logout and others

git-svn-id: svn://losandesgames.com/alfheim-website@4 15359d88-9307-4e75-a9c1-e5686e5897df
This commit is contained in:
vfs committed 2024-05-14 15:45:09 +00:00
1 parent 09e27a029c
commit 3aefbf7bd7
7 files changed
+122 -67

No files matched your search

+4
View File
@@ -19,8 +19,12 @@
<nav>
<a href="/"><h1 class="maintitle">Alfheim</h1></a>
<div class="navbuttons">
{{if .AuthenticatedUser}}
<a href="/logout"><div class="loginbutton"><strong>Log out</strong></div></a>
{{else}}
<a href="/login"><div class="loginbutton"><strong>Log in</strong><span class="material-symbols-outlined">login</span></div></a>
<a href="/register"><div class="loginbutton"><strong>Register</strong></div></a>
{{end}}
</div>
</nav>
</header>