{{$file := .file}} {{range $j, $section := $file.Sections}} {{range $k, $line := $section.Lines}} {{if or $.root.AfterCommitID (ne .GetType 4)}} {{if eq .GetType 4}} {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}} {{svg "octicon-fold-down"}} {{end}} {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4)}} {{svg "octicon-fold-up"}} {{end}} {{if eq $line.GetExpandDirection 2}} {{svg "octicon-fold"}} {{end}} {{else}} {{end}} {{$inlineDiff := $section.GetComputedInlineDiffFor $line $.root.locale -}} {{if $inlineDiff.EscapeStatus.Escaped}}{{end}} {{if eq .GetType 4}} {{/* */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff "locale" $.root.locale}}{{/* */}} {{else}} {{/* */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{/* */}}{{/* */}}{{svg "octicon-plus"}}{{/* */}}{{/* */}}{{end}}{{/* */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff "locale" $.root.locale}}{{/* */}} {{end}} {{if gt (len $line.Comments) 0}} {{template "repo/diff/conversation" mergeinto $.root "comments" $line.Comments}} {{end}} {{end}} {{end}} {{end}}