{{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)}}