{{$file := .file}} {{$highlightClass := $file.GetHighlightClass}} {{range $j, $section := $file.Sections}} {{range $k, $line := $section.Lines}} {{if eq .GetType 4}} {{/* {{if gt $j 0}}{{end}} */}} {{else}} {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} {{if $line.RightIdx}}{{$line.RightIdx}}{{end}} {{end}} {{if and $.root.SignedUserID $line.CanComment}} + {{end}}
{{$section.GetComputedInlineDiffFor $line}}
{{if gt (len $line.Comments) 0}}
{{ template "repo/diff/comments" dict "root" $.root "comments" $line.Comments}}
{{template "repo/diff/comment_form_datahandler" dict "hidden" true "root" $.root "comment" (index $line.Comments 0)}}
{{end}} {{end}} {{end}}