diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 5e0d07ed6d..5ae3393575 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -7,7 +7,7 @@ {{if .DefaultBranchBranch}}

{{ctx.Locale.Tr "repo.default_branch"}} - {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} + {{if and $.IsWriter $.Repository.CanContentChange (not .IsDeleted)}} {{svg "octicon-arrow-switch"}} @@ -31,7 +31,7 @@ {{/* FIXME: here and below, the tw-overflow-visible is not quite right but it is still needed the moment: to show the important buttons when the width is narrow */}} - {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} + {{if and $.IsWriter $.Repository.CanContentChange (not .IsDeleted)}}