diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index c6a570b1a61..a2f09e4b8a9 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -73,33 +73,34 @@ {{end}} {{svg "octicon-file-moved" 15}} - {{if or .CanAddFile .CanUploadFile}} - - {{end}} - {{else}} - {{EllipsisString .Repository.Name 30}}{{range $i, $v := .TreeNames}}/{{if eq $i $l}}{{EllipsisString $v 30}}{{else}}{{ $p := index $.Paths $i}}{{EllipsisString $v 30}}{{end}}{{end}} + {{if .CanUploadFile}} + + {{.i18n.Tr "repo.editor.upload_file"}} + + {{end}} + {{if .CanAddFile}} + + {{.i18n.Tr "repo.editor.patch"}} + + {{end}} + {{end}} + + {{svg "octicon-triangle-down" 14 "dropdown icon"}} + + {{end}} + {{if ne $n 0}} + {{EllipsisString .Repository.Name 30}}{{range $i, $v := .TreeNames}}/{{if eq $i $l}}{{EllipsisString $v 30}}{{else}}{{$p := index $.Paths $i}}{{EllipsisString $v 30}}{{end}}{{end}} {{end}}