{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings branches")}}

{{if .Rule.RuleName}} {{ctx.Locale.Tr "repo.settings.branch_protection" .Rule.RuleName}} {{else}} {{ctx.Locale.Tr "repo.settings.protect_new_rule"}} {{end}}

{{.CsrfTokenHtml}}
{{ctx.Locale.Tr "repo.settings.protect_patterns"}}
{{ctx.Locale.Tr "repo.settings.event_push"}}
{{if .Owner.IsOrganization}}
{{end}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_approvals"}}
{{if .Owner.IsOrganization}}
{{end}}

{{ctx.Locale.Tr "repo.settings.ignore_stale_approvals_desc"}}

{{ctx.Locale.Tr "repo.settings.protect_check_status_contexts_desc"}}

{{ctx.Locale.Tr "repo.settings.protect_status_check_patterns_desc"}}

{{range $.recent_status_checks}} {{else}} {{end}}
{{ctx.Locale.Tr "repo.settings.protect_check_status_contexts_list"}}
{{.}} {{ctx.Locale.Tr "repo.settings.protect_status_check_matched"}}
-
{{ctx.Locale.Tr "repo.settings.event_pull_request_merge"}}

{{ctx.Locale.Tr "repo.settings.protect_enable_merge_desc"}}

{{ctx.Locale.Tr "repo.settings.protect_merge_whitelist_committers_desc"}}

{{if .Owner.IsOrganization}}
{{end}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_enforcement"}}
{{template "repo/settings/layout_footer" .}}