aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDenys Konovalov <kontakt@denyskon.de>2023-10-30 10:53:16 +0100
committerGitHub <noreply@github.com>2023-10-30 09:53:16 +0000
commite5f19dd317cba78b870f9ec6c6af181d16a30c7e (patch)
tree6bf5046c59075cbfaef07e156dfc3e309db62122 /templates
parent0e021cd33ee3eb3d8f204bd075e2597b7ec8b391 (diff)
downloadgitea-e5f19dd317cba78b870f9ec6c6af181d16a30c7e.tar.gz
gitea-e5f19dd317cba78b870f9ec6c6af181d16a30c7e.zip
Always use whole user name as link (#27815)
Starting from #25790 this shared template only linked the username of the user if both display name and username were shown. I experienced myself always trying to click on the display name - I think it is annoying for others too. After: ![grafik](https://github.com/go-gitea/gitea/assets/47871822/a0e82127-b773-4ca4-890f-d18422a7bef2) ![grafik](https://github.com/go-gitea/gitea/assets/47871822/79efcf93-2f50-4fc4-ba15-afc6174be48c)
Diffstat (limited to 'templates')
-rw-r--r--templates/shared/user/name.tmpl6
1 files changed, 1 insertions, 5 deletions
diff --git a/templates/shared/user/name.tmpl b/templates/shared/user/name.tmpl
index 343c762407..896349fdf8 100644
--- a/templates/shared/user/name.tmpl
+++ b/templates/shared/user/name.tmpl
@@ -1,5 +1 @@
-{{if .FullName}}
- {{.FullName}} <span>(<a class="text primary" href="{{.HomeLink}}">{{.Name}}</a>)</span>
-{{else}}
- <a class="text primary" href="{{.HomeLink}}">{{.Name}}</a>
-{{end}}
+<a class="text muted" href="{{.HomeLink}}">{{.Name}}{{if .FullName}} ({{.FullName}}){{end}}</a>