summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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>