summaryrefslogtreecommitdiffstats
path: root/templates/repo/pulls/compare.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/pulls/compare.tmpl')
-rw-r--r--templates/repo/pulls/compare.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/pulls/compare.tmpl b/templates/repo/pulls/compare.tmpl
index d2e00ace36..2296acf1df 100644
--- a/templates/repo/pulls/compare.tmpl
+++ b/templates/repo/pulls/compare.tmpl
@@ -54,6 +54,9 @@
<div class="ui segment">
{{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}}
</div>
+ {{else if eq .CommitCount 0 }}
+ {{template "repo/commits_table" .}}
+ {{template "repo/diff/box" .}}
{{else}}
{{template "repo/issue/new_form" .}}
{{template "repo/commits_table" .}}