mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +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:
@@ -61,7 +61,7 @@
|
||||
<span class="author tw-flex tw-items-center tw-mr-2">
|
||||
{{$userName := $commit.Commit.Author.Name}}
|
||||
{{if $commit.User}}
|
||||
{{if $commit.User.FullName}}
|
||||
{{if and $commit.User.FullName DefaultShowFullName}}
|
||||
{{$userName = $commit.User.FullName}}
|
||||
{{end}}
|
||||
<span class="tw-mr-1">{{ctx.AvatarUtils.Avatar $commit.User}}</span>
|
||||
|
Reference in New Issue
Block a user