aboutsummaryrefslogtreecommitdiff
path: root/templates/_header.html.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-13 01:28:35 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-13 01:28:35 +0800
commit14326ba9be276d2649b4681d3ebed1c32f65013f (patch)
tree9bd8717b6968b5a977d925d193042a92bc68f311 /templates/_header.html.tmpl
parentssh_{server,utils}: Swap filenames (diff)
downloadforge-14326ba9be276d2649b4681d3ebed1c32f65013f.tar.gz
forge-14326ba9be276d2649b4681d3ebed1c32f65013f.tar.zst
forge-14326ba9be276d2649b4681d3ebed1c32f65013f.zip
_header.html: Add header
Diffstat (limited to '')
-rw-r--r--templates/_header.html.tmpl12
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 -}}