{{template "base/head" .}}
{{template "repo/header" .}} {{template "repo/settings/navbar" .}}
{{template "base/alert" .}}

{{.locale.Tr "repo.settings.branch_protection" (.Rule.RuleName|Escape) | Str2html}}

{{.CsrfTokenHtml}}

{{.locale.Tr "repo.settings.protect_disable_push_desc"}}

{{.locale.Tr "repo.settings.protect_enable_push_desc"}}

{{.locale.Tr "repo.settings.protect_whitelist_committers_desc"}}

{{if .Owner.IsOrganization}}
{{end}}

{{.locale.Tr "repo.settings.protect_merge_whitelist_committers_desc"}}

{{if .Owner.IsOrganization}}
{{end}}

{{.locale.Tr "repo.settings.protect_check_status_contexts_desc"}}

{{range $.branch_status_check_contexts}} {{end}}
{{.locale.Tr "repo.settings.protect_check_status_contexts_list"}}
{{.}} {{if $.is_context_required}}{{if call $.is_context_required .}}
Required
{{end}}{{end}}

{{.locale.Tr "repo.settings.protect_required_approvals_desc"}}

{{.locale.Tr "repo.settings.protect_approvals_whitelist_enabled_desc"}}

{{if .Owner.IsOrganization}}
{{end}}

{{.locale.Tr "repo.settings.block_rejected_reviews_desc"}}

{{.locale.Tr "repo.settings.block_on_official_review_requests_desc"}}

{{.locale.Tr "repo.settings.dismiss_stale_approvals_desc"}}

{{.locale.Tr "repo.settings.require_signed_commits_desc"}}

{{.locale.Tr "repo.settings.block_outdated_branch_desc"}}

{{.locale.Tr "repo.settings.protect_protected_file_patterns_desc" | Safe}}

{{.locale.Tr "repo.settings.protect_unprotected_file_patterns_desc" | Safe}}

{{template "base/footer" .}}