summaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorElizabeth <elizabeth@simponic.xyz>2024-04-09 18:39:14 -0400
committersimponic <simponic@hatecomputers.club>2024-04-09 18:39:14 -0400
commit1d75bf7489527925217bd5611ba7910c0ffe077c (patch)
tree3b6e6056912648a88e1e42c1e42ed7e58e2d4701 /templates/base.html
parentee49015cc90e6c136ad94243fffc9241b9506a36 (diff)
downloadhatecomputers.club-1d75bf7489527925217bd5611ba7910c0ffe077c.tar.gz
hatecomputers.club-1d75bf7489527925217bd5611ba7910c0ffe077c.zip
profiles (#7)
Reviewed-on: https://git.hatecomputers.club/hatecomputers/hatecomputers.club/pulls/7 Co-authored-by: Elizabeth <elizabeth@simponic.xyz> Co-committed-by: Elizabeth <elizabeth@simponic.xyz>
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index 9f5a903..89d6dd2 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -37,7 +37,9 @@
<span> | </span>
<a href="/keys">api keys.</a>
<span> | </span>
- <a href="/logout">logout, {{ .User.DisplayName }}.</a>
+ <a href="/profile">{{ .User.DisplayName }}.</a>
+ <span> | </span>
+ <a href="/logout">logout.</a>
{{ else }}
<a href="/login">login.</a>
@@ -46,6 +48,17 @@
<hr>
<div id="content">
+ {{ if and .Success (gt (len .Success.Messages) 0) }}
+ {{ range $message := .Success.Messages }}
+ <div class="info success">{{ $message }}</div>
+ {{ end }}
+ {{ end }}
+ {{ if and .Error (gt (len .Error.Messages) 0) }}
+ {{ range $error := .Error.Messages }}
+ <div class="info error">{{ $error }}</div>
+ {{ end }}
+ {{ end }}
+
{{ template "content" . }}
</div>