diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 963671cfa0f1..7860689c7515 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -29,7 +29,7 @@ {{.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}}