mirror of
https://github.com/go-gitea/gitea
synced 2025-07-27 12:48:37 +00:00
Fix DEFAULT_SHOW_FULL_NAME=false
has no effect in commit list and commit graph page (#30096)
Fix #20446 This PR will fix the username in: repo home page  repo commit list page  repo commit graph page  pr commit page  Will not fix: wiki revisions page:  ps: the author name is `FullName` by default
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<td class="author tw-flex">
|
||||
{{$userName := .Author.Name}}
|
||||
{{if .User}}
|
||||
{{if .User.FullName}}
|
||||
{{if and .User.FullName DefaultShowFullName}}
|
||||
{{$userName = .User.FullName}}
|
||||
{{end}}
|
||||
{{ctx.AvatarUtils.Avatar .User 28 "tw-mr-2"}}<a class="muted author-wrapper" href="{{.User.HomeLink}}">{{$userName}}</a>
|
||||
|
Reference in New Issue
Block a user