0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-15 10:43:21 +02:00

Allow fork and delete directory

This commit is contained in:
Lunny Xiao 2026-01-15 21:48:34 -08:00
parent 43ed2000f5
commit 143aa8c666
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -102,7 +102,7 @@
</a>
{{if and (.Repository.CanContentChange) (not $isTreePathRoot)}}
<div class="divider"></div>
<a class="item tw-text-danger{{if not (.Permission.CanWrite ctx.Consts.RepoUnitTypeCode)}} disabled{{end}}" href="{{.RepoLink}}/_delete/{{.BranchName | PathEscapeSegments}}/{{.TreePath | PathEscapeSegments}}">
<a class="item tw-text-danger" href="{{.RepoLink}}/_delete/{{.BranchName | PathEscapeSegments}}/{{.TreePath | PathEscapeSegments}}">
{{svg "octicon-trash" 16}}{{ctx.Locale.Tr "repo.editor.delete_this_directory"}}
</a>
{{end}}