{{$file := .file}} {{$highlightClass := $file.GetHighlightClass}} {{range $j, $section := $file.Sections}} {{range $k, $line := $section.Lines}} {{if eq .GetType 4}} {{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}} {{svg "octicon-fold" 16}} {{end}} {{else}} {{end}} {{if and $.root.SignedUserID $line.CanComment $.root.PageIsPullFiles}}+{{end}}{{$section.GetComputedInlineDiffFor $line}} {{if gt (len $line.Comments) 0}} {{$resolved := (index $line.Comments 0).IsResolved}} {{$resolveDoer := (index $line.Comments 0).ResolveDoer}} {{$isNotPending := (not (eq (index $line.Comments 0).Review.Type 0))}} {{if $resolved}}
{{$resolveDoer.Name}} {{$.root.i18n.Tr "repo.issues.review.resolved_by"}}
{{end}}
{{ template "repo/diff/comments" dict "root" $.root "comments" $line.Comments}}
{{template "repo/diff/comment_form_datahandler" dict "hidden" true "reply" (index $line.Comments 0).ReviewID "root" $.root "comment" (index $line.Comments 0)}} {{if and $.root.CanMarkConversation $isNotPending}} {{end}}
{{end}} {{end}} {{end}}