diff options
Diffstat (limited to 'templates/_header.html.tmpl')
-rw-r--r-- | templates/_header.html.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/_header.html.tmpl b/templates/_header.html.tmpl new file mode 100644 index 0000000..bfe386a --- /dev/null +++ b/templates/_header.html.tmpl @@ -0,0 +1,12 @@ +{{- define "header" -}} +<div> + <a href="/">Lindenii Forge</a> +</div> +<div> + {{ if ne .user_id "" }} + <a href="/:/user/{{ .user_id }}">{{ .username }}</a> + {{ else }} + <a href="/:/login/">Login</a> + {{ end }} +</div> +{{- end -}} |