Show PR settings on empty repos (#12808)

Fix #12788

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2020-09-11 13:39:01 +01:00 committed by GitHub
parent 4eb0a1dfaf
commit 7777017b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,7 +284,7 @@
</div> </div>
</div> </div>
{{if .Repository.CanEnablePulls}} {{if and (not .IsMirror) (.Repository.UnitEnabled $.UnitTypePullRequests)}}
<div class="ui divider"></div> <div class="ui divider"></div>
{{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}} {{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}}
{{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}} {{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}}