mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-04-21 23:36:43 +02:00
Dateien nach „templates/repo“ hochladen
This commit is contained in:
parent
384fbd843d
commit
3c5498bc89
1 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue