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

{{.locale.Tr "repo.default_branch"}}

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

{{.CsrfTokenHtml}} {{if not .Repository.IsEmpty}} {{end}}

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

{{range .ProtectedBranches}} {{else}} {{end}}
{{.RuleName}}
{{$.locale.Tr "repo.settings.edit_protected_branch"}}
{{.locale.Tr "repo.settings.no_protected_branch"}}
{{if $.Repository.CanCreateBranch}}

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

{{.CsrfTokenHtml}}
{{end}} {{end}}
{{template "repo/settings/layout_footer" .}}