diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 2028797bdb..cba6b740c5 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -12,7 +12,12 @@ - +
{{.DefaultBranch}} + {{if .IsProtected}} + + {{end}} + {{.DefaultBranch}} +
@@ -27,9 +32,9 @@ {{.i18n.Tr "repo.branch.name"}} + - - {{if and $.IsWriter (not $.IsMirror)}} + {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived)}} {{.i18n.Tr "repo.branch.delete_head"}} {{end}} @@ -43,6 +48,9 @@ {{.Name}}

{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}

{{else}} + {{if .IsProtected}} + + {{end}} {{.Name}}

{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}

{{end}} @@ -79,13 +87,11 @@ {{end}} {{end}} - {{if and $.IsWriter (not $.IsMirror)}} + {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived)}} - {{if .IsProtected}} - - {{else if .IsDeleted}} + {{if and .IsDeleted (not .IsProtected)}} - {{else}} + {{else if (not .IsProtected)}} {{end}}