Skip to content

Commit e5f19dd

Browse files
authored
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)
1 parent 0e021cd commit e5f19dd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

templates/shared/user/name.tmpl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{{if .FullName}}
2-
{{.FullName}} <span>(<a class="text primary" href="{{.HomeLink}}">{{.Name}}</a>)</span>
3-
{{else}}
4-
<a class="text primary" href="{{.HomeLink}}">{{.Name}}</a>
5-
{{end}}
1+
<a class="text muted" href="{{.HomeLink}}">{{.Name}}{{if .FullName}} ({{.FullName}}){{end}}</a>

0 commit comments

Comments
 (0)