summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-09-11 13:39:01 +0100
committerGitHub <noreply@github.com>2020-09-11 13:39:01 +0100
commit7777017b43239df7612611248bca68041fd61268 (patch)
tree2fa79ea21d8c2b4125b62be92d937b1f59e8d9cc
parent4eb0a1dfaf3c4a69651b1055fa09409b9cf0b528 (diff)
downloadgitea-7777017b43239df7612611248bca68041fd61268.tar.gz
gitea-7777017b43239df7612611248bca68041fd61268.zip
Show PR settings on empty repos (#12808)
Fix #12788 Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r--templates/repo/settings/options.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index d2d51fe6ea..8a490ac645 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -284,7 +284,7 @@
</div>
</div>
- {{if .Repository.CanEnablePulls}}
+ {{if and (not .IsMirror) (.Repository.UnitEnabled $.UnitTypePullRequests)}}
<div class="ui divider"></div>
{{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}}
{{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}}