{{if .ReadmeInList}} {{svg "octicon-book" 16 "mr-3"}} {{.FileName}} {{else}}
{{if .FileIsSymlink}}
{{.i18n.Tr "repo.symbolic_link"}}
{{end}} {{if .NumLinesSet}}
{{.NumLines}} {{.i18n.Tr (TrN .i18n.Lang .NumLines "repo.line" "repo.lines") }}
{{end}} {{if .FileSize}}
{{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}
{{end}} {{if .LFSLock}}
{{svg "octicon-lock" 16 "mr-2"}} {{.LFSLockOwner}}
{{end}}
{{end}}
{{if not .ReadmeInList}}
{{if .HasSourceRenderedToggle}} {{end}} {{if .Repository.CanEnableEditor}} {{if .CanEditFile}} {{svg "octicon-pencil"}} {{else}} {{svg "octicon-pencil"}} {{end}} {{if .CanDeleteFile}} {{svg "octicon-trashcan"}} {{else}} {{svg "octicon-trashcan"}} {{end}} {{end}}
{{end}}

{{if .IsMarkup}} {{if .FileContent}}{{.FileContent | Safe}}{{end}} {{else if .IsRenderedHTML}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsTextSource}}
{{if .IsImageFile}} {{else if .IsVideoFile}} {{else if .IsAudioFile}} {{else if .IsPDFFile}} {{else}} {{.i18n.Tr "repo.file_view_raw"}} {{end}}
{{else if .FileSize}} {{if .IsFileTooLarge}}
{{.i18n.Tr "repo.file_too_large"}}
{{else}} {{range $line, $code := .FileContent}} {{end}}
{{$code | Safe}}
{{end}} {{end}}