{{if len .comments}} {{$comment := index .comments 0}} {{$resolved := $comment.IsResolved}} {{$invalid := $comment.Invalidated}} {{$resolveDoer := $comment.ResolveDoer}} {{$hasReview := and $comment.Review}} {{$isReviewPending := and $hasReview (eq $comment.Review.Type 0)}} {{$referenceUrl := printf "%s#%s" $.Issue.Link $comment.HashTag}}
{{if $resolved}}
{{svg "octicon-check" 16 "icon tw-mr-1"}} {{$resolveDoer.Name}} {{ctx.Locale.Tr "repo.issues.review.resolved_by"}} {{if $invalid}} {{ctx.Locale.Tr "repo.issues.review.outdated"}} {{end}}
{{end}}
{{template "repo/diff/comments" dict "root" $ "comments" .comments}}
{{if and $.CanMarkConversation $hasReview (not $isReviewPending)}} {{end}} {{if and $.SignedUserID (not $.Repository.IsArchived)}} {{end}}
{{template "repo/diff/comment_form_datahandler" dict "hidden" true "reply" $comment.ReviewID "root" $ "comment" $comment}}
{{else}} {{template "repo/diff/conversation_outdated"}} {{end}}