mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Remove ref name in PR commits page (#25876)
The branch name display here is based on the repo's default branch which is not correct.  For example, if I changed the default branch, the branch name here will also be changed:   you can confirm this in : https://try.gitea.io/yp05327/testrepo/pulls/1/commits I think we do not need to display branch name here, as we already have the branch info above. 
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
<h4 class="ui top attached header commits-table gt-df gt-ac gt-sb">
|
||||
<div class="commits-table-left gt-df gt-ac">
|
||||
{{if or .PageIsCommits (gt .CommitCount 0)}}
|
||||
{{.CommitCount}} {{.locale.Tr "repo.commits.commits"}} {{if .RefName}}({{.RefName}}){{end}}
|
||||
{{.CommitCount}} {{.locale.Tr "repo.commits.commits"}}
|
||||
{{else if .IsNothingToCompare}}
|
||||
{{.locale.Tr "repo.commits.nothing_to_compare"}} {{if .RefName}}({{.RefName}}){{end}}
|
||||
{{.locale.Tr "repo.commits.nothing_to_compare"}}
|
||||
{{else}}
|
||||
{{.locale.Tr "repo.commits.no_commits" $.BaseBranch $.HeadBranch}} {{if .RefName}}({{.RefName}}){{end}}
|
||||
{{.locale.Tr "repo.commits.no_commits" $.BaseBranch $.HeadBranch}}
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="commits-table-right gt-whitespace-nowrap">
|
||||
|
Reference in New Issue
Block a user