diff --git a/templates/repo/view_content.tmpl b/templates/repo/view_content.tmpl index b31648fbbe..cbac675902 100644 --- a/templates/repo/view_content.tmpl +++ b/templates/repo/view_content.tmpl @@ -100,9 +100,9 @@ {{svg "octicon-link" 16}}{{ctx.Locale.Tr "repo.file_copy_permalink"}} - {{if and (.Permission.CanWrite ctx.Consts.RepoUnitTypeCode) (not .Repository.IsArchived) (not $isTreePathRoot)}} + {{if and (.Repository.CanContentChange) (not $isTreePathRoot)}}
- + {{svg "octicon-trash" 16}}{{ctx.Locale.Tr "repo.editor.delete_this_directory"}} {{end}}