Show PR settings on empty repos #12808

Merged
lunny merged 4 commits from fix-12788-show-pr-settings-on-empty-repos into master 2020-09-11 12:39:01 +00:00
Contributor

Previously the settings page would not show the PR section if the repository was empty.

Fix #12788

Signed-off-by: Andrew Thornton art27@cantab.net

Previously the settings page would not show the PR section if the repository was empty. Fix #12788 Signed-off-by: Andrew Thornton <art27@cantab.net>
6543 (Migrated from github.com) approved these changes 2020-09-10 21:59:58 +00:00
mrsdizzie (Migrated from github.com) approved these changes 2020-09-11 00:10:05 +00:00
lunny reviewed 2020-09-11 04:54:57 +00:00
@ -286,3 +286,3 @@
{{if .Repository.CanEnablePulls}}
{{if and (not .IsMirror) (.Repository.UnitEnabled $.UnitTypePullRequests)}}
<div class="ui divider"></div>

(not .IsArchive) ?

(not .IsArchive) ?
zeripath reviewed 2020-09-11 06:49:51 +00:00
@ -286,3 +286,3 @@
{{if .Repository.CanEnablePulls}}
{{if and (not .IsMirror) (.Repository.UnitEnabled $.UnitTypePullRequests)}}
<div class="ui divider"></div>
Author
Contributor

None of the other sections check that.

None of the other sections check that.
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#12808
No description provided.