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}}