File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
templates/repo/issue/view_content Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -1372,7 +1372,26 @@ func ViewIssue(ctx *context.Context) {
1372
1372
ctx .ServerError ("Review.LoadCodeComments" , err )
1373
1373
return
1374
1374
}
1375
+ for _ , codeComments := range comment .Review .CodeComments {
1376
+ for _ , lineComments := range codeComments {
1377
+ for _ , c := range lineComments {
1378
+ // Check tag.
1379
+ tag , ok = marked [c .PosterID ]
1380
+ if ok {
1381
+ c .ShowTag = tag
1382
+ continue
1383
+ }
1375
1384
1385
+ c .ShowTag , err = commentTag (repo , c .Poster , issue )
1386
+ if err != nil {
1387
+ ctx .ServerError ("commentTag" , err )
1388
+ return
1389
+ }
1390
+ marked [c .PosterID ] = c .ShowTag
1391
+ participants = addParticipant (c .Poster , participants )
1392
+ }
1393
+ }
1394
+ }
1376
1395
if err = comment .LoadResolveDoer (); err != nil {
1377
1396
ctx .ServerError ("LoadResolveDoer" , err )
1378
1397
return
Original file line number Diff line number Diff line change 532
532
{{end}}
533
533
</div>
534
534
{{end}}
535
- {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink $ .ID)}}
535
+ {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
536
536
{{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" . "delete" true "issue" true "diff" true "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
537
537
{{end}}
538
538
</div>
You can’t perform that action at this time.
0 commit comments