summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-05-02 09:06:01 +0100
committerGitHub <noreply@github.com>2020-05-02 16:06:01 +0800
commit28f8308d47af30e3ac3796034d7a3f6d5f375a3e (patch)
tree7ea3ab5a1dade0f9b166119f4592c276192373ab /templates
parent452b69b71e607a7cc15a66a0f6077738c1bff354 (diff)
downloadgitea-28f8308d47af30e3ac3796034d7a3f6d5f375a3e.tar.gz
gitea-28f8308d47af30e3ac3796034d7a3f6d5f375a3e.zip
Show pull request selection even when unrelated branches (#11239)
Fix #10525 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/compare.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl
index e98823953c..b088636434 100644
--- a/templates/repo/diff/compare.tmpl
+++ b/templates/repo/diff/compare.tmpl
@@ -59,7 +59,7 @@
{{if .IsNothingToCompare}}
<div class="ui segment">{{.i18n.Tr "repo.pulls.nothing_to_compare"}}</div>
- {{else if .PageIsComparePull}}
+ {{else if and .PageIsComparePull (gt .CommitCount 0)}}
{{if .HasPullRequest}}
<div class="ui segment">
{{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}}