@ -81,9 +81,11 @@
{{ else if eq .Type 1 }}
{{ else if eq .Type 1 }}
<div class="timeline-item event" id=" {{ .HashTag }} ">
<div class="timeline-item event" id=" {{ .HashTag }} ">
<span class="badge gt-bg-green gt-text-white"> {{ svg "octicon-dot-fill" }} </span>
<span class="badge gt-bg-green gt-text-white"> {{ svg "octicon-dot-fill" }} </span>
{{ if not .OriginalAuthor }}
{{ template "shared/user/avatarlink" dict "user" .Poster }}
{{ template "shared/user/avatarlink" dict "user" .Poster }}
{{ end }}
<span class="text grey muted-links">
<span class="text grey muted-links">
{{ template "shared/user/authorlink" .Poster }}
{{ template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" . }}
{{ if .Issue .IsPull }}
{{ if .Issue .IsPull }}
{{ ctx .Locale .Tr "repo.pulls.reopened_at" .EventTag $ createdStr }}
{{ ctx .Locale .Tr "repo.pulls.reopened_at" .EventTag $ createdStr }}
{{ else }}
{{ else }}
@ -94,9 +96,11 @@
{{ else if eq .Type 2 }}
{{ else if eq .Type 2 }}
<div class="timeline-item event" id=" {{ .HashTag }} ">
<div class="timeline-item event" id=" {{ .HashTag }} ">
<span class="badge gt-bg-red gt-text-white"> {{ svg "octicon-circle-slash" }} </span>
<span class="badge gt-bg-red gt-text-white"> {{ svg "octicon-circle-slash" }} </span>
{{ if not .OriginalAuthor }}
{{ template "shared/user/avatarlink" dict "user" .Poster }}
{{ template "shared/user/avatarlink" dict "user" .Poster }}
{{ end }}
<span class="text grey muted-links">
<span class="text grey muted-links">
{{ template "shared/user/authorlink" .Poster }}
{{ template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" . }}
{{ if .Issue .IsPull }}
{{ if .Issue .IsPull }}
{{ ctx .Locale .Tr "repo.pulls.closed_at" .EventTag $ createdStr }}
{{ ctx .Locale .Tr "repo.pulls.closed_at" .EventTag $ createdStr }}
{{ else }}
{{ else }}
@ -107,9 +111,11 @@
{{ else if eq .Type 2 8 }}
{{ else if eq .Type 2 8 }}
<div class="timeline-item event" id=" {{ .HashTag }} ">
<div class="timeline-item event" id=" {{ .HashTag }} ">
<span class="badge gt-bg-purple gt-text-white"> {{ svg "octicon-git-merge" }} </span>
<span class="badge gt-bg-purple gt-text-white"> {{ svg "octicon-git-merge" }} </span>
{{ if not .OriginalAuthor }}
{{ template "shared/user/avatarlink" dict "user" .Poster }}
{{ template "shared/user/avatarlink" dict "user" .Poster }}
{{ end }}
<span class="text grey muted-links">
<span class="text grey muted-links">
{{ template "shared/user/authorlink" .Poster }}
{{ template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" . }}
{{ $ link : = printf "%s/commit/%s" $ .Repository .Link ( $ .Issue .PullRequest .MergedCommitID | PathEscape ) }}
{{ $ link : = printf "%s/commit/%s" $ .Repository .Link ( $ .Issue .PullRequest .MergedCommitID | PathEscape ) }}
{{ if eq $ .Issue .PullRequest .Status 3 }}
{{ if eq $ .Issue .PullRequest .Status 3 }}
{{ 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 }}
{{ 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,18 +381,7 @@
{{ end }}
{{ end }}
<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>
<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>
<span class="text grey muted-links">
<span class="text grey muted-links">
{{ if .OriginalAuthor }}
{{ template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" . }}
<span class="text black">
{{ svg ( MigrationIcon $ .Repository .GetOriginalURLHostname ) }}
{{ .OriginalAuthor }}
</span>
{{ if $ .Repository .OriginalURL }}
<span class="migrate">( {{ ctx .Locale .Tr "repo.migrated_from" $ .Repository .OriginalURL $ .Repository .GetOriginalURLHostname }} )</span>
{{ end }}
{{ else }}
{{ template "shared/user/authorlink" .Poster }}
{{ end }}
{{ if eq .Review .Type 1 }}
{{ if eq .Review .Type 1 }}
{{ ctx .Locale .Tr "repo.issues.review.approve" $ createdStr }}
{{ ctx .Locale .Tr "repo.issues.review.approve" $ createdStr }}
{{ else if eq .Review .Type 2 }}
{{ else if eq .Review .Type 2 }}
@ -498,17 +493,7 @@
{{ template "shared/user/avatarlink" dict "user" .Poster }}
{{ template "shared/user/avatarlink" dict "user" .Poster }}
{{ end }}
{{ end }}
<span class="text grey muted-links">
<span class="text grey muted-links">
{{ if .OriginalAuthor }}
{{ template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" . }}
<span class="text black">
{{ svg ( MigrationIcon $ .Repository .GetOriginalURLHostname ) }}
{{ .OriginalAuthor }}
</span>
{{ if $ .Repository .OriginalURL }}
<span class="migrate">( {{ ctx .Locale .Tr "repo.migrated_from" $ .Repository .OriginalURL $ .Repository .GetOriginalURLHostname }} )</span>
{{ end }}
{{ else }}
{{ template "shared/user/authorlink" .Poster }}
{{ end }}
{{ ctx .Locale .Tr "repo.pulls.change_target_branch_at" .OldRef .NewRef $ createdStr }}
{{ ctx .Locale .Tr "repo.pulls.change_target_branch_at" .OldRef .NewRef $ createdStr }}
</span>
</span>
</div>
</div>
@ -675,17 +660,7 @@
<div class="timeline-item event" id=" {{ .HashTag }} ">
<div class="timeline-item event" id=" {{ .HashTag }} ">
<span class="badge"> {{ svg "octicon-git-merge" 1 6 }} </span>
<span class="badge"> {{ svg "octicon-git-merge" 1 6 }} </span>
<span class="text grey muted-links">
<span class="text grey muted-links">
{{ if .OriginalAuthor }}
{{ template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" . }}
<span class="text black">
{{ svg ( MigrationIcon $ .Repository .GetOriginalURLHostname ) }}
{{ .OriginalAuthor }}
</span>
{{ if $ .Repository .OriginalURL }}
<span class="migrate">( {{ ctx .Locale .Tr "repo.migrated_from" $ .Repository .OriginalURL $ .Repository .GetOriginalURLHostname }} )</span>
{{ end }}
{{ else }}
{{ template "shared/user/authorlink" .Poster }}
{{ end }}
{{ if eq .Type 3 4 }} {{ ctx .Locale .Tr "repo.pulls.auto_merge_newly_scheduled_comment" $ createdStr }}
{{ if eq .Type 3 4 }} {{ ctx .Locale .Tr "repo.pulls.auto_merge_newly_scheduled_comment" $ createdStr }}
{{ else }} {{ ctx .Locale .Tr "repo.pulls.auto_merge_canceled_schedule_comment" $ createdStr }} {{ end }}
{{ else }} {{ ctx .Locale .Tr "repo.pulls.auto_merge_canceled_schedule_comment" $ createdStr }} {{ end }}
</span>
</span>