File tree 1 file changed +3
-4
lines changed
templates/repo/issue/view_content
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 374
374
{{$reviewType := -1}}
375
375
{{if .Review}}{{$reviewType = .Review.Type}}{{end}}
376
376
{{if not .OriginalAuthor}}
377
- {{/* Some timeline avatars need a offset to correctly align with their speech
378
- bubble. The condition depends on review type and for positive reviews whether
379
- there is a comment element or not */}}
380
- <a class="timeline-avatar{{if or (and (eq $reviewType 1) (or .Content .Attachments)) (and (eq $reviewType 2) (or .Content .Attachments)) (eq $reviewType 3)}} timeline-avatar-offset{{end}}"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>
377
+ {{/* Some timeline avatars need a offset to correctly align with their speech bubble.
378
+ The condition depends on whether the comment has contents/attachments or reviews */}}
379
+ <a class="timeline-avatar{{if or .Content .Attachments (and .Review .Review.CodeComments)}} timeline-avatar-offset{{end}}"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>
381
380
{{ctx.AvatarUtils.Avatar .Poster 40}}
382
381
</a>
383
382
{{end}}
You can’t perform that action at this time.
0 commit comments