aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/pulls
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-02 05:09:12 -0400
committerUnknwon <u@gogs.io>2015-09-02 05:09:12 -0400
commit1abfe4e05f2c936ab43c8188003a33213b245a56 (patch)
tree38cec881f7ce3e1a60d47ced5d68be6563dd853f /templates/repo/pulls
parent37e0cee8770fc4f14857e16eabe83ab7e93a0646 (diff)
downloadgitea-1abfe4e05f2c936ab43c8188003a33213b245a56.tar.gz
gitea-1abfe4e05f2c936ab43c8188003a33213b245a56.zip
PR: nothing to commit and has pull request check
Diffstat (limited to 'templates/repo/pulls')
-rw-r--r--templates/repo/pulls/compare.tmpl12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/repo/pulls/compare.tmpl b/templates/repo/pulls/compare.tmpl
index 79f15730c8..d176ac36ab 100644
--- a/templates/repo/pulls/compare.tmpl
+++ b/templates/repo/pulls/compare.tmpl
@@ -45,10 +45,20 @@
</div>
</div>
</div>
- {{template "repo/issue/new_form" .}}
+ {{if .IsNothingToCompare}}
+ <div class="ui segment">
+ {{.i18n.Tr "repo.pulls.nothing_to_compare"}}
+ </div>
+ {{else if .HasPullRequest}}
+ <div class="ui segment">
+ {{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.PullIndex | Safe}}
+ </div>
+ {{else}}
+ {{template "repo/issue/new_form" .}}
{{template "repo/commits_table" .}}
{{template "repo/diff_box" .}}
+ {{end}}
</div>
</div>