{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}}
{{if .Repository.IsArchived}}
{{ctx.Locale.Tr "repo.settings.archive.branchsettings_unavailable"}}
{{else}}

{{ctx.Locale.Tr "repo.default_branch"}}

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

{{.CsrfTokenHtml}}

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

{{range .ProtectedBranches}}
{{svg "octicon-grabber" 16}}
{{.RuleName}}
{{ctx.Locale.Tr "repo.settings.edit_protected_branch"}}
{{else}}
{{ctx.Locale.Tr "repo.settings.no_protected_branch"}}
{{end}}
{{end}}
{{template "repo/settings/layout_footer" .}}