summaryrefslogtreecommitdiffstats
path: root/templates/repo/commits_table.tmpl
diff options
context:
space:
mode:
authorMarty <58218546+PotatoesFall@users.noreply.github.com>2021-07-29 04:32:48 +0200
committerGitHub <noreply@github.com>2021-07-29 03:32:48 +0100
commit4e68d6f41d21e7c5465be6bdb6713c36eb586dfd (patch)
treeec749491e1ca2990cf3eea03bd5b711d8fedeb77 /templates/repo/commits_table.tmpl
parent33e0b38287fdc3487112062300b8dd3c95415ee7 (diff)
downloadgitea-4e68d6f41d21e7c5465be6bdb6713c36eb586dfd.tar.gz
gitea-4e68d6f41d21e7c5465be6bdb6713c36eb586dfd.zip
Show correct text when comparing commits on empty pull request (#16569)
* fix * use own text * Update templates/repo/commits_table.tmpl Co-authored-by: marty <m.karkossa@ultraware.nl> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/repo/commits_table.tmpl')
-rw-r--r--templates/repo/commits_table.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl
index 3ef2339843..7bdcb340d9 100644
--- a/templates/repo/commits_table.tmpl
+++ b/templates/repo/commits_table.tmpl
@@ -2,6 +2,9 @@
<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}}
+
{{else}}
{{.i18n.Tr "repo.commits.no_commits" $.BaseBranch $.HeadBranch }} {{if .Branch}}({{.Branch}}){{end}}
{{end}}