diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2021-11-18 00:50:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 00:50:17 +0100 |
commit | ea42d3c04ef48b9ff0354ea196179d1a5025c04a (patch) | |
tree | 8a95df877dae7a5cf62364a525cc532205d5d188 /templates/repo/commits_table.tmpl | |
parent | Add .gitattribute assisted language detection to blame, diff and render (#17590) (diff) | |
download | forgejo-ea42d3c04ef48b9ff0354ea196179d1a5025c04a.tar.xz forgejo-ea42d3c04ef48b9ff0354ea196179d1a5025c04a.zip |
Fixed commit count. (#17698)
Added "Tag" label.
Unified branch, tag and commit name.
Diffstat (limited to 'templates/repo/commits_table.tmpl')
-rw-r--r-- | templates/repo/commits_table.tmpl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 4871b688a7..edd5f7285a 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -1,12 +1,11 @@ <h4 class="ui top attached header commits-table df ac sb"> <div class="commits-table-left df ac"> {{if or .PageIsCommits (gt .CommitCount 0)}} - {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}} {{if .Branch}}({{.Branch}}){{end}} - {{else if .IsNothingToCompare }} - {{.i18n.Tr "repo.commits.nothing_to_compare" }} {{if .Branch}}({{.Branch}}){{end}} - + {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}} {{if .RefName}}({{.RefName}}){{end}} + {{else if .IsNothingToCompare}} + {{.i18n.Tr "repo.commits.nothing_to_compare" }} {{if .RefName}}({{.RefName}}){{end}} {{else}} - {{.i18n.Tr "repo.commits.no_commits" $.BaseBranch $.HeadBranch }} {{if .Branch}}({{.Branch}}){{end}} + {{.i18n.Tr "repo.commits.no_commits" $.BaseBranch $.HeadBranch}} {{if .RefName}}({{.RefName}}){{end}} {{end}} </div> <div class="commits-table-right df ac"> |