diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 7860689c7515..7fe1703fc804 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -12,7 +12,12 @@ - +
{{.DefaultBranch}} + {{if .IsProtected}} + + {{end}} + {{.DefaultBranch}} +
@@ -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}} @@ -81,11 +89,9 @@ {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived)}} - {{if .IsProtected}} - - {{else if .IsDeleted}} + {{if and .IsDeleted (not .IsProtected)}} - {{else}} + {{else if (not .IsProtected)}} {{end}}