{{$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}} {{if eq .GetType 4}} {{$section.GetComputedInlineDiffFor $line}} {{else}} {{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{svg "octicon-plus"}}{{end}}{{$section.GetComputedInlineDiffFor $line}} {{end}} {{if gt (len $line.Comments) 0}} {{template "repo/diff/conversation" mergeinto $.root "comments" $line.Comments}} {{end}} {{end}} {{end}} {{end}}