templates/repo/home.tmpl aktualisiert

This commit is contained in:
davrot 2025-01-27 23:59:15 +00:00
parent 640e0e438e
commit ba70463b53

View file

@ -117,7 +117,7 @@
{{if (not .IsViewFile)}}
{{if and .CanDeleteFile (not .IsBlame)}}
<span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{.DeleteFileTooltip}}"> <a href="{{.RepoLink}}/_delete_path/{{PathEscapeSegments .BranchName}}/{{PathEscapeSegments .TreePath}}"><span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{.DeleteFileTooltip}}">{{svg "octicon-trash"}}</span></a>
<a href="{{.RepoLink}}/_delete_path/{{PathEscapeSegments .BranchName}}/{{PathEscapeSegments .TreePath}}"><span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{.DeleteFileTooltip}}">{{svg "octicon-trash"}}</span></a>
{{else}}
<span class="btn-octicon disabled" data-tooltip-content="{{.DeleteFileTooltip}}">{{svg "octicon-trash"}}</span>
{{end}}