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}} + |
{{$.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)}}