|
|
@ -20,7 +20,7 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
<a class="timeline-avatar"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> |
|
|
|
<a class="timeline-avatar"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> |
|
|
|
{{avatar $.Context .Poster 40}} |
|
|
|
{{ctx.AvatarUtils.Avatar .Poster 40}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<div class="content comment-container"> |
|
|
|
<div class="content comment-container"> |
|
|
@ -40,7 +40,7 @@ |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
{{if gt .Poster.ID 0}} |
|
|
|
{{if gt .Poster.ID 0}} |
|
|
|
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> |
|
|
|
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> |
|
|
|
{{avatar $.Context .Poster 24}} |
|
|
|
{{ctx.AvatarUtils.Avatar .Poster 24}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
@ -94,7 +94,7 @@ |
|
|
|
{{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> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{if .Issue.IsPull}} |
|
|
|
{{if .Issue.IsPull}} |
|
|
@ -107,7 +107,7 @@ |
|
|
|
{{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> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{if .Issue.IsPull}} |
|
|
|
{{if .Issue.IsPull}} |
|
|
@ -120,7 +120,7 @@ |
|
|
|
{{else if eq .Type 28}} |
|
|
|
{{else if eq .Type 28}} |
|
|
|
<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> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$link := printf "%s/commit/%s" $.Repository.Link ($.Issue.PullRequest.MergedCommitID|PathEscape)}} |
|
|
|
{{$link := printf "%s/commit/%s" $.Repository.Link ($.Issue.PullRequest.MergedCommitID|PathEscape)}} |
|
|
@ -147,7 +147,7 @@ |
|
|
|
{{$createdStr:= TimeSinceUnix .CreatedUnix $.locale}} |
|
|
|
{{$createdStr:= TimeSinceUnix .CreatedUnix $.locale}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-bookmark"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-bookmark"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
{{if eq .RefAction 3}}<del>{{end}} |
|
|
|
{{if eq .RefAction 3}}<del>{{end}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
@ -162,7 +162,7 @@ |
|
|
|
{{else if eq .Type 4}} |
|
|
|
{{else if eq .Type 4}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-bookmark"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-bookmark"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}} |
|
|
@ -176,7 +176,7 @@ |
|
|
|
{{if or .AddedLabels .RemovedLabels}} |
|
|
|
{{if or .AddedLabels .RemovedLabels}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-tag"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-tag"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{if and .AddedLabels (not .RemovedLabels)}} |
|
|
|
{{if and .AddedLabels (not .RemovedLabels)}} |
|
|
@ -192,7 +192,7 @@ |
|
|
|
{{else if eq .Type 8}} |
|
|
|
{{else if eq .Type 8}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-milestone"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-milestone"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{if gt .OldMilestoneID 0}}{{if gt .MilestoneID 0}}{{$.locale.Tr "repo.issues.change_milestone_at" (.OldMilestone.Name|Escape) (.Milestone.Name|Escape) $createdStr | Safe}}{{else}}{{$.locale.Tr "repo.issues.remove_milestone_at" (.OldMilestone.Name|Escape) $createdStr | Safe}}{{end}}{{else if gt .MilestoneID 0}}{{$.locale.Tr "repo.issues.add_milestone_at" (.Milestone.Name|Escape) $createdStr | Safe}}{{end}} |
|
|
|
{{if gt .OldMilestoneID 0}}{{if gt .MilestoneID 0}}{{$.locale.Tr "repo.issues.change_milestone_at" (.OldMilestone.Name|Escape) (.Milestone.Name|Escape) $createdStr | Safe}}{{else}}{{$.locale.Tr "repo.issues.remove_milestone_at" (.OldMilestone.Name|Escape) $createdStr | Safe}}{{end}}{{else if gt .MilestoneID 0}}{{$.locale.Tr "repo.issues.add_milestone_at" (.Milestone.Name|Escape) $createdStr | Safe}}{{end}} |
|
|
@ -203,7 +203,7 @@ |
|
|
|
<span class="badge">{{svg "octicon-person"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-person"}}</span> |
|
|
|
{{if gt .AssigneeID 0}} |
|
|
|
{{if gt .AssigneeID 0}} |
|
|
|
{{if .RemovedAssignee}} |
|
|
|
{{if .RemovedAssignee}} |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Assignee}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Assignee}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Assignee}} |
|
|
|
{{template "shared/user/authorlink" .Assignee}} |
|
|
|
{{if eq .Poster.ID .Assignee.ID}} |
|
|
|
{{if eq .Poster.ID .Assignee.ID}} |
|
|
@ -213,7 +213,7 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Assignee}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Assignee}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Assignee}} |
|
|
|
{{template "shared/user/authorlink" .Assignee}} |
|
|
|
{{if eq .Poster.ID .AssigneeID}} |
|
|
|
{{if eq .Poster.ID .AssigneeID}} |
|
|
@ -228,7 +228,7 @@ |
|
|
|
{{else if eq .Type 10}} |
|
|
|
{{else if eq .Type 10}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-pencil"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-pencil"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.change_title_at" (.OldTitle|RenderEmoji $.Context) (.NewTitle|RenderEmoji $.Context) $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.change_title_at" (.OldTitle|RenderEmoji $.Context) (.NewTitle|RenderEmoji $.Context) $createdStr | Safe}} |
|
|
@ -237,7 +237,7 @@ |
|
|
|
{{else if eq .Type 11}} |
|
|
|
{{else if eq .Type 11}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-git-branch"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-git-branch"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.delete_branch_at" (.OldRef|Escape) $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.delete_branch_at" (.OldRef|Escape) $createdStr | Safe}} |
|
|
@ -246,7 +246,7 @@ |
|
|
|
{{else if eq .Type 12}} |
|
|
|
{{else if eq .Type 12}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.start_tracking_history" $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.start_tracking_history" $createdStr | Safe}} |
|
|
@ -255,7 +255,7 @@ |
|
|
|
{{else if eq .Type 13}} |
|
|
|
{{else if eq .Type 13}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.stop_tracking_history" $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.stop_tracking_history" $createdStr | Safe}} |
|
|
@ -274,7 +274,7 @@ |
|
|
|
{{else if eq .Type 14}} |
|
|
|
{{else if eq .Type 14}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.add_time_history" $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.add_time_history" $createdStr | Safe}} |
|
|
@ -293,7 +293,7 @@ |
|
|
|
{{else if eq .Type 15}} |
|
|
|
{{else if eq .Type 15}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.cancel_tracking_history" $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.cancel_tracking_history" $createdStr | Safe}} |
|
|
@ -302,7 +302,7 @@ |
|
|
|
{{else if eq .Type 16}} |
|
|
|
{{else if eq .Type 16}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.due_date_added" (DateTime "long" .Content) $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.due_date_added" (DateTime "long" .Content) $createdStr | Safe}} |
|
|
@ -311,7 +311,7 @@ |
|
|
|
{{else if eq .Type 17}} |
|
|
|
{{else if eq .Type 17}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$parsedDeadline := StringUtils.Split .Content "|"}} |
|
|
|
{{$parsedDeadline := StringUtils.Split .Content "|"}} |
|
|
@ -325,7 +325,7 @@ |
|
|
|
{{else if eq .Type 18}} |
|
|
|
{{else if eq .Type 18}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.due_date_remove" (DateTime "long" .Content) $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.due_date_remove" (DateTime "long" .Content) $createdStr | Safe}} |
|
|
@ -334,7 +334,7 @@ |
|
|
|
{{else if eq .Type 19}} |
|
|
|
{{else if eq .Type 19}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-package-dependents"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-package-dependents"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.dependency.added_dependency" $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.dependency.added_dependency" $createdStr | Safe}} |
|
|
@ -357,7 +357,7 @@ |
|
|
|
{{else if eq .Type 20}} |
|
|
|
{{else if eq .Type 20}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-package-dependents"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-package-dependents"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.dependency.removed_dependency" $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.dependency.removed_dependency" $createdStr | Safe}} |
|
|
@ -386,7 +386,7 @@ |
|
|
|
bubble. The condition depends on review type and for positive reviews whether |
|
|
|
bubble. The condition depends on review type and for positive reviews whether |
|
|
|
there is a comment element or not */}} |
|
|
|
there is a comment element or not */}} |
|
|
|
<a class="timeline-avatar{{if or (and (eq .Review.Type 1) (or .Content .Attachments)) (and (eq .Review.Type 2) (or .Content .Attachments)) (eq .Review.Type 3)}} timeline-avatar-offset{{end}}"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> |
|
|
|
<a class="timeline-avatar{{if or (and (eq .Review.Type 1) (or .Content .Attachments)) (and (eq .Review.Type 2) (or .Content .Attachments)) (eq .Review.Type 3)}} timeline-avatar-offset{{end}}"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> |
|
|
|
{{avatar $.Context .Poster 40}} |
|
|
|
{{ctx.AvatarUtils.Avatar .Poster 40}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{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> |
|
|
@ -423,7 +423,7 @@ |
|
|
|
<div class="comment-header-left gt-df gt-ac"> |
|
|
|
<div class="comment-header-left gt-df gt-ac"> |
|
|
|
{{if gt .Poster.ID 0}} |
|
|
|
{{if gt .Poster.ID 0}} |
|
|
|
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> |
|
|
|
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> |
|
|
|
{{avatar $.Context .Poster 24}} |
|
|
|
{{ctx.AvatarUtils.Avatar .Poster 24}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
@ -549,7 +549,7 @@ |
|
|
|
<div class="comment-header-left gt-df gt-ac"> |
|
|
|
<div class="comment-header-left gt-df gt-ac"> |
|
|
|
{{if not .OriginalAuthor}} |
|
|
|
{{if not .OriginalAuthor}} |
|
|
|
<a class="avatar"> |
|
|
|
<a class="avatar"> |
|
|
|
{{avatar $.Context .Poster 20}} |
|
|
|
{{ctx.AvatarUtils.Avatar .Poster 20}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
@ -644,7 +644,7 @@ |
|
|
|
{{else if eq .Type 23}} |
|
|
|
{{else if eq .Type 23}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-lock"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-lock"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
{{if .Content}} |
|
|
|
{{if .Content}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
@ -660,7 +660,7 @@ |
|
|
|
{{else if eq .Type 24}} |
|
|
|
{{else if eq .Type 24}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-key"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-key"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$.locale.Tr "repo.issues.unlock_comment" $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.issues.unlock_comment" $createdStr | Safe}} |
|
|
@ -669,7 +669,7 @@ |
|
|
|
{{else if eq .Type 25}} |
|
|
|
{{else if eq .Type 25}} |
|
|
|
<div class="timeline-item event"> |
|
|
|
<div class="timeline-item event"> |
|
|
|
<span class="badge">{{svg "octicon-git-branch"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-git-branch"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<a{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.Name}}</a> |
|
|
|
<a{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.Name}}</a> |
|
|
|
{{$.locale.Tr "repo.pulls.change_target_branch_at" (.OldRef|Escape) (.NewRef|Escape) $createdStr | Safe}} |
|
|
|
{{$.locale.Tr "repo.pulls.change_target_branch_at" (.OldRef|Escape) (.NewRef|Escape) $createdStr | Safe}} |
|
|
@ -678,7 +678,7 @@ |
|
|
|
{{else if eq .Type 26}} |
|
|
|
{{else if eq .Type 26}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
|
|
|
|
|
|
|
@ -697,7 +697,7 @@ |
|
|
|
{{else if eq .Type 27}} |
|
|
|
{{else if eq .Type 27}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-eye"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-eye"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{if (gt .AssigneeID 0)}} |
|
|
|
{{if (gt .AssigneeID 0)}} |
|
|
@ -752,7 +752,7 @@ |
|
|
|
{{if not $.UnitProjectsGlobalDisabled}} |
|
|
|
{{if not $.UnitProjectsGlobalDisabled}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-project"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-project"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{$oldProjectDisplayHtml := "Unknown Project"}} |
|
|
|
{{$oldProjectDisplayHtml := "Unknown Project"}} |
|
|
@ -799,7 +799,7 @@ |
|
|
|
<div class="ui top attached header comment-header-left gt-df gt-ac arrow-top"> |
|
|
|
<div class="ui top attached header comment-header-left gt-df gt-ac arrow-top"> |
|
|
|
{{if gt .Poster.ID 0}} |
|
|
|
{{if gt .Poster.ID 0}} |
|
|
|
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> |
|
|
|
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> |
|
|
|
{{avatar $.Context .Poster 24}} |
|
|
|
{{ctx.AvatarUtils.Avatar .Poster 24}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
@ -822,7 +822,7 @@ |
|
|
|
{{else if eq .Type 33}} |
|
|
|
{{else if eq .Type 33}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-git-branch"}}</span> |
|
|
|
<span class="badge">{{svg "octicon-git-branch"}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{if and .OldRef .NewRef}} |
|
|
|
{{if and .OldRef .NewRef}} |
|
|
@ -846,7 +846,7 @@ |
|
|
|
{{else if or (eq .Type 36) (eq .Type 37)}} |
|
|
|
{{else if or (eq .Type 36) (eq .Type 37)}} |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<div class="timeline-item event" id="{{.HashTag}}"> |
|
|
|
<span class="badge">{{svg "octicon-pin" 16}}</span> |
|
|
|
<span class="badge">{{svg "octicon-pin" 16}}</span> |
|
|
|
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
|
|
{{template "shared/user/avatarlink" dict "user" .Poster}} |
|
|
|
<span class="text grey muted-links"> |
|
|
|
<span class="text grey muted-links"> |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
{{if eq .Type 36}}{{$.locale.Tr "repo.issues.pin_comment" $createdStr | Safe}} |
|
|
|
{{if eq .Type 36}}{{$.locale.Tr "repo.issues.pin_comment" $createdStr | Safe}} |
|
|
|