{{template "base/head" .}}
{{template "repo/header" .}} {{template "repo/settings/navbar" .}}
{{template "base/alert" .}} {{if .Repository.IsArchived}}
{{.i18n.Tr "repo.settings.archive.branchsettings_unavailable"}}
{{else}}

{{.i18n.Tr "repo.default_branch"}}

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

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

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

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

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

{{.CsrfTokenHtml}}
{{end}} {{end}}
{{template "base/footer" .}}