From 2b99b4dd7f8aa5f466aaeb8e551d4817a37b9926 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Mon, 30 Oct 2023 10:53:16 +0100 Subject: [PATCH] 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) --- templates/shared/user/name.tmpl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/templates/shared/user/name.tmpl b/templates/shared/user/name.tmpl index 343c76240748f..896349fdf8b80 100644 --- a/templates/shared/user/name.tmpl +++ b/templates/shared/user/name.tmpl @@ -1,5 +1 @@ -{{if .FullName}} - {{.FullName}} ({{.Name}}) -{{else}} - {{.Name}} -{{end}} +{{.Name}}{{if .FullName}} ({{.FullName}}){{end}}