From 3c5498bc8944bdf5d750b61f77e3f520a51af3a2 Mon Sep 17 00:00:00 2001 From: davrot Date: Sun, 26 Jan 2025 02:12:36 +0000 Subject: [PATCH] =?UTF-8?q?Dateien=20nach=20=E2=80=9Etemplates/repo?= =?UTF-8?q?=E2=80=9C=20hochladen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/repo/home.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 7bf4ee4a8e..7b6b6cea71 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -112,6 +112,15 @@ {{$p := index $.Paths $i}}{{$v}} {{- end -}} {{- end -}} + + {{if (not .IsViewFile)}} + {{if and .CanDeleteFile (not .IsBlame)}} + {{svg "octicon-trash"}} + {{else}} + {{svg "octicon-trash"}} + {{end}} + {{end}} + {{end}}