Browse Source

Show PR settings on empty repos (#12808)

Fix #12788

Signed-off-by: Andrew Thornton <art27@cantab.net>
tags/v1.13.0-rc1
zeripath GitHub 5 years ago
parent
commit
35301a7037
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/repo/settings/options.tmpl

+ 1
- 1
templates/repo/settings/options.tmpl View File

@@ -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}}


Loading…
Cancel
Save