|
81 | 81 | {{else if eq .Type 1}}
|
82 | 82 | <div class="timeline-item event" id="{{.HashTag}}">
|
83 | 83 | <span class="badge gt-bg-green gt-text-white">{{svg "octicon-dot-fill"}}</span>
|
84 |
| - {{template "shared/user/avatarlink" dict "user" .Poster}} |
| 84 | + {{if not .OriginalAuthor}} |
| 85 | + {{template "shared/user/avatarlink" dict "user" .Poster}} |
| 86 | + {{end}} |
85 | 87 | <span class="text grey muted-links">
|
86 |
| - {{template "shared/user/authorlink" .Poster}} |
| 88 | + {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}} |
87 | 89 | {{if .Issue.IsPull}}
|
88 | 90 | {{ctx.Locale.Tr "repo.pulls.reopened_at" .EventTag $createdStr}}
|
89 | 91 | {{else}}
|
|
94 | 96 | {{else if eq .Type 2}}
|
95 | 97 | <div class="timeline-item event" id="{{.HashTag}}">
|
96 | 98 | <span class="badge gt-bg-red gt-text-white">{{svg "octicon-circle-slash"}}</span>
|
97 |
| - {{template "shared/user/avatarlink" dict "user" .Poster}} |
| 99 | + {{if not .OriginalAuthor}} |
| 100 | + {{template "shared/user/avatarlink" dict "user" .Poster}} |
| 101 | + {{end}} |
98 | 102 | <span class="text grey muted-links">
|
99 |
| - {{template "shared/user/authorlink" .Poster}} |
| 103 | + {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}} |
100 | 104 | {{if .Issue.IsPull}}
|
101 | 105 | {{ctx.Locale.Tr "repo.pulls.closed_at" .EventTag $createdStr}}
|
102 | 106 | {{else}}
|
|
107 | 111 | {{else if eq .Type 28}}
|
108 | 112 | <div class="timeline-item event" id="{{.HashTag}}">
|
109 | 113 | <span class="badge gt-bg-purple gt-text-white">{{svg "octicon-git-merge"}}</span>
|
110 |
| - {{template "shared/user/avatarlink" dict "user" .Poster}} |
| 114 | + {{if not .OriginalAuthor}} |
| 115 | + {{template "shared/user/avatarlink" dict "user" .Poster}} |
| 116 | + {{end}} |
111 | 117 | <span class="text grey muted-links">
|
112 |
| - {{template "shared/user/authorlink" .Poster}} |
| 118 | + {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}} |
113 | 119 | {{$link := printf "%s/commit/%s" $.Repository.Link ($.Issue.PullRequest.MergedCommitID|PathEscape)}}
|
114 | 120 | {{if eq $.Issue.PullRequest.Status 3}}
|
115 | 121 | {{ctx.Locale.Tr "repo.issues.comment_manually_pull_merged_at" (HTMLFormat `<a class="ui sha" href="%[1]s"><b>%[2]s</b></a>` $link (ShortSha $.Issue.PullRequest.MergedCommitID)) (HTMLFormat "<b>%[1]s</b>" $.BaseTarget) $createdStr}}
|
|
375 | 381 | {{end}}
|
376 | 382 | <span class="badge{{if eq .Review.Type 1}} gt-bg-green gt-text-white{{else if eq .Review.Type 3}} gt-bg-red gt-text-white{{end}}">{{svg (printf "octicon-%s" .Review.Type.Icon)}}</span>
|
377 | 383 | <span class="text grey muted-links">
|
378 |
| - {{if .OriginalAuthor}} |
379 |
| - <span class="text black"> |
380 |
| - {{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}} |
381 |
| - {{.OriginalAuthor}} |
382 |
| - </span> |
383 |
| - {{if $.Repository.OriginalURL}} |
384 |
| - <span class="migrate">({{ctx.Locale.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname}})</span> |
385 |
| - {{end}} |
386 |
| - {{else}} |
387 |
| - {{template "shared/user/authorlink" .Poster}} |
388 |
| - {{end}} |
389 |
| - |
| 384 | + {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}} |
390 | 385 | {{if eq .Review.Type 1}}
|
391 | 386 | {{ctx.Locale.Tr "repo.issues.review.approve" $createdStr}}
|
392 | 387 | {{else if eq .Review.Type 2}}
|
|
498 | 493 | {{template "shared/user/avatarlink" dict "user" .Poster}}
|
499 | 494 | {{end}}
|
500 | 495 | <span class="text grey muted-links">
|
501 |
| - {{if .OriginalAuthor}} |
502 |
| - <span class="text black"> |
503 |
| - {{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}} |
504 |
| - {{.OriginalAuthor}} |
505 |
| - </span> |
506 |
| - {{if $.Repository.OriginalURL}} |
507 |
| - <span class="migrate">({{ctx.Locale.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname}})</span> |
508 |
| - {{end}} |
509 |
| - {{else}} |
510 |
| - {{template "shared/user/authorlink" .Poster}} |
511 |
| - {{end}} |
| 496 | + {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}} |
512 | 497 | {{ctx.Locale.Tr "repo.pulls.change_target_branch_at" .OldRef .NewRef $createdStr}}
|
513 | 498 | </span>
|
514 | 499 | </div>
|
|
675 | 660 | <div class="timeline-item event" id="{{.HashTag}}">
|
676 | 661 | <span class="badge">{{svg "octicon-git-merge" 16}}</span>
|
677 | 662 | <span class="text grey muted-links">
|
678 |
| - {{if .OriginalAuthor}} |
679 |
| - <span class="text black"> |
680 |
| - {{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}} |
681 |
| - {{.OriginalAuthor}} |
682 |
| - </span> |
683 |
| - {{if $.Repository.OriginalURL}} |
684 |
| - <span class="migrate">({{ctx.Locale.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname}})</span> |
685 |
| - {{end}} |
686 |
| - {{else}} |
687 |
| - {{template "shared/user/authorlink" .Poster}} |
688 |
| - {{end}} |
| 663 | + {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}} |
689 | 664 | {{if eq .Type 34}}{{ctx.Locale.Tr "repo.pulls.auto_merge_newly_scheduled_comment" $createdStr}}
|
690 | 665 | {{else}}{{ctx.Locale.Tr "repo.pulls.auto_merge_canceled_schedule_comment" $createdStr}}{{end}}
|
691 | 666 | </span>
|
|
0 commit comments