{{if .ReadmeExist}} {{if .ReadmeInList}} {{.FileName}} {{else}} {{.FileName}} {{FileSize .FileSize}} {{end}} {{else}} {{.FileName}} {{FileSize .FileSize}} {{end}} {{if not .ReadmeInList}}
{{if .CanEditFile}} {{else}} {{end}} {{if .CanDeleteFile}}
{{.CsrfTokenHtml}}
{{else}} {{end}}
{{end}}

{{if .IsMarkdown}} {{if .FileContent}}{{.FileContent | Str2html}}{{end}} {{else if not .IsFileText}}
{{if .IsImageFile}} {{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}}