Skip to content

Commit

Permalink
Show PR settings on empty repos (go-gitea#12808)
Browse files Browse the repository at this point in the history
Fix go-gitea#12788

Signed-off-by: Andrew Thornton <art27@cantab.net>
  • Loading branch information
zeripath authored Sep 11, 2020
1 parent 4eb0a1d commit 7777017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/settings/options.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 7777017

Please sign in to comment.