diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-06 20:44:21 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-06 20:44:21 +0800 |
commit | 5614adc762adc2e94a9bf2d6d69fef46570ae376 (patch) | |
tree | 9632a94c7c97e50f87cd87310010813fade11a04 /templates | |
parent | group/index: Reuse ID from first SQL query to avoid triple recursion (diff) | |
download | forge-5614adc762adc2e94a9bf2d6d69fef46570ae376.tar.gz forge-5614adc762adc2e94a9bf2d6d69fef46570ae376.tar.zst forge-5614adc762adc2e94a9bf2d6d69fef46570ae376.zip |
http: Check for direct user access
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_header.tmpl | 4 |
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 }} |