aboutsummaryrefslogtreecommitdiff
path: root/templates/_header.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-06 20:44:21 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-06 20:44:21 +0800
commit5614adc762adc2e94a9bf2d6d69fef46570ae376 (patch)
tree9632a94c7c97e50f87cd87310010813fade11a04 /templates/_header.tmpl
parentgroup/index: Reuse ID from first SQL query to avoid triple recursion (diff)
downloadforge-5614adc762adc2e94a9bf2d6d69fef46570ae376.tar.gz
forge-5614adc762adc2e94a9bf2d6d69fef46570ae376.tar.zst
forge-5614adc762adc2e94a9bf2d6d69fef46570ae376.zip
http: Check for direct user access
Diffstat (limited to 'templates/_header.tmpl')
-rw-r--r--templates/_header.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/_header.tmpl b/templates/_header.tmpl
index 9fb0e75..0100b7d 100644
--- a/templates/_header.tmpl
+++ b/templates/_header.tmpl
@@ -8,8 +8,8 @@
<a href="/">{{ .global.forge_title }}</a>
</div>
<div id="main-header-user">
- {{ if ne .user_id "" }}
- <a href="/:/users/{{ .user_id }}">{{ .username }}</a>
+ {{ if ne .user_id_string "" }}
+ <a href="/:/users/{{ .user_id_string }}">{{ .username }}</a>
{{ else }}
<a href="/:/login/">Login</a>
{{ end }}