diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 685351ecb..f14f2b9a2 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -64,8 +64,8 @@ {{ $l := Subtract $n 1}}
{{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 .Repository.CanEnableEditor}} -
+
+ {{if .Repository.CanEnableEditor}} {{if .CanAddFile}} {{.i18n.Tr "repo.editor.new_file"}} @@ -76,8 +76,13 @@ {{.i18n.Tr "repo.editor.upload_file"}} {{end}} -
- {{end}} + {{end}} + {{if and (ne $n 0) (not .IsViewFile)}} + + {{.i18n.Tr "repo.file_history"}} + + {{end}} +