Dateien nach „templates/repo“ hochladen

This commit is contained in:
davrot 2025-01-26 02:12:36 +00:00
parent 384fbd843d
commit 3c5498bc89

View file

@ -112,6 +112,15 @@
{{$p := index $.Paths $i}}<span class="section"><a href="{{$.BranchLink}}/{{PathEscapeSegments $p}}" title="{{$v}}">{{$v}}</a></span>
{{- end -}}
{{- end -}}
{{if (not .IsViewFile)}}
{{if and .CanDeleteFile (not .IsBlame)}}
<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}}
{{end}}
</span>
{{end}}
</div>