{{$file := .file}} {{range $j, $section := $file.Sections}} {{range $k, $line := $section.Lines}} {{if eq .GetType 4}} {{if $.root.AfterCommitID}}
{{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}} {{end}} {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4)}} {{end}} {{if eq $line.GetExpandDirection 2}} {{end}}
{{else}} {{/* for code file preview page or comment diffs on pull comment pages, do not show the expansion arrows */}} {{end}} {{else}} {{end}} {{$inlineDiff := $section.GetComputedInlineDiffFor $line ctx.Locale -}} {{- if $inlineDiff.EscapeStatus.Escaped -}} {{- end -}} {{if eq .GetType 4}} {{/* */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{/* */}} {{else}} {{/* */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{/* */}}{{/* */}}{{end}}{{/* */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{/* */}} {{end}} {{if $line.Comments}} {{template "repo/diff/conversation" dict "." $.root "comments" $line.Comments}} {{end}} {{end}} {{end}}