summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLizzy Hunt <lizzy.hunt@usu.edu>2024-03-27 15:02:31 -0600
committerLizzy Hunt <lizzy.hunt@usu.edu>2024-03-27 15:02:31 -0600
commit0dc2679005e70c50024bc49e750f3998a0c4c24b (patch)
tree73153522195608ee2ed3bbb4c2ed3cbc621b6b07 /templates
parent8d65f4e23026dce5d04e9a4afaf216f0732482a6 (diff)
downloadhatecomputers.club-0dc2679005e70c50024bc49e750f3998a0c4c24b.tar.gz
hatecomputers.club-0dc2679005e70c50024bc49e750f3998a0c4c24b.zip
authentication! oauth2!
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index fcd978e..1846493 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -22,6 +22,12 @@
<div class="header">
<h1>hatecomputers.club</h1>
<a href="javascript:void(0);" id="theme-switcher"></a>
+ <span> | </span>
+ {{ if .User }}
+ <a href="/logout">logout, {{ .User.DisplayName }}.</a>
+ {{ else }}
+ <a href="/login">login.</a>
+ {{ end }}
</div>
<hr>