{{if not (or .IsMarkup .IsRenderedHTML)}}
{{template "repo/unicode_escape_prompt" dict "EscapeStatus" .EscapeStatus "root" $}}
{{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}}
{{.locale.Tr "repo.file_view_raw"}}
{{end}}
{{else if .FileSize}}
{{if .IsFileTooLarge}}
{{.locale.Tr "repo.file_too_large"}} |
{{else}}
{{range $idx, $code := .FileContent}}
{{$line := Add $idx 1}}
|
{{if $.EscapeStatus.Escaped}}
{{if (index $.LineEscapeStatus $idx).Escaped}}{{end}} |
{{end}}
{{$code | Safe}} |
{{end}}
{{end}}
{{end}}