{{ $l := Subtract (len .TreeNames) 1}} {{EllipsisString .Repository.Name 30}}{{range $i, $v := .TreeNames}}/{{if ne $i $l}}{{ $p := index $.Paths $i}}{{EllipsisString $v 30}}{{end}}{{end}} {{if .ReadmeExist}} {{if .ReadmeInList}} {{.FileName}} {{else}} {{.FileName}} {{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}} {{end}} {{else}} {{.FileName}} {{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}} {{end}}
{{if not .ReadmeInList}}
{{if .Repository.CanEnableEditor}} {{if .CanEditFile}} {{else}} {{end}} {{if .CanDeleteFile}} {{else}} {{end}} {{end}}
{{end}}

{{if .IsMarkup}} {{if .FileContent}}{{.FileContent | Safe}}{{end}} {{else if .IsRenderedHTML}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsTextFile}}
{{if .IsImageFile}} {{else if .IsVideoFile}} {{else if .IsAudioFile}} {{else if .IsPDFFile}} {{else}} {{.i18n.Tr "repo.file_view_raw"}} {{end}}
{{else if .FileSize}} {{if .IsFileTooLarge}} {{else}} {{end}}
{{.i18n.Tr "repo.file_too_large"}}{{.LineNums}}
    {{.FileContent}}
{{end}}