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

{{.i18n.Tr "repo.settings.branch_protection" .Branch.BranchName | Str2html}}

{{.CsrfTokenHtml}}

{{.i18n.Tr "repo.settings.protect_this_branch_desc"}}

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

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

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

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

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

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

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

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

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

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

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

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

{{template "base/footer" .}}