@ -17,7 +17,7 @@
{{ if .OriginalAuthor }}
{{ if .OriginalAuthor }}
<span class="timeline-avatar"><img src=" {{ AppSubUrl }} /assets/img/avatar_default.png"></span>
<span class="timeline-avatar"><img src=" {{ AppSubUrl }} /assets/img/avatar_default.png"></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 .Poster }}
{{ avatar .Poster }}
</a>
</a>
{{ end }}
{{ end }}
@ -96,11 +96,9 @@
{{ 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 bg-green text-white"> {{ svg "octicon-dot-fill" }} </span>
<span class="badge bg-green text-white"> {{ svg "octicon-dot-fill" }} </span>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ if .Issue .IsPull }}
{{ if .Issue .IsPull }}
{{ $ .locale .Tr "repo.pulls.reopened_at" .EventTag $ createdStr | Safe }}
{{ $ .locale .Tr "repo.pulls.reopened_at" .EventTag $ createdStr | Safe }}
{{ else }}
{{ else }}
@ -111,11 +109,9 @@
{{ 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 bg-red text-white"> {{ svg "octicon-circle-slash" }} </span>
<span class="badge bg-red text-white"> {{ svg "octicon-circle-slash" }} </span>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ if .Issue .IsPull }}
{{ if .Issue .IsPull }}
{{ $ .locale .Tr "repo.pulls.closed_at" .EventTag $ createdStr | Safe }}
{{ $ .locale .Tr "repo.pulls.closed_at" .EventTag $ createdStr | Safe }}
{{ else }}
{{ else }}
@ -126,11 +122,9 @@
{{ 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 bg-purple text-white"> {{ svg "octicon-git-merge" }} </span>
<span class="badge bg-purple text-white"> {{ svg "octicon-git-merge" }} </span>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ link : = printf "%s/commit/%s" $ .Repository .HTMLURL ( $ .Issue .PullRequest .MergedCommitID | PathEscape ) }}
{{ $ link : = printf "%s/commit/%s" $ .Repository .HTMLURL ( $ .Issue .PullRequest .MergedCommitID | PathEscape ) }}
{{ if eq $ .Issue .PullRequest .Status 3 }}
{{ if eq $ .Issue .PullRequest .Status 3 }}
{{ $ .locale .Tr "repo.issues.manually_pull_merged_at" ( $ link | Escape ) ( ShortSha $ .Issue .PullRequest .MergedCommitID ) ( $ .BaseTarget | Escape ) $ createdStr | Str2html }}
{{ $ .locale .Tr "repo.issues.manually_pull_merged_at" ( $ link | Escape ) ( ShortSha $ .Issue .PullRequest .MergedCommitID ) ( $ .BaseTarget | Escape ) $ createdStr | Str2html }}
@ -155,12 +149,10 @@
{{ $ 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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
{{ if eq .RefAction 3 }} <del> {{ end }}
{{ if eq .RefAction 3 }} <del> {{ end }}
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr $ refTr ( .EventTag | Escape ) $ createdStr ( .RefCommentHTMLURL | Escape ) $ refFrom | Safe }}
{{ $ .locale .Tr $ refTr ( .EventTag | Escape ) $ createdStr ( .RefCommentHTMLURL | Escape ) $ refFrom | Safe }}
</span>
</span>
{{ if eq .RefAction 3 }} </del> {{ end }}
{{ if eq .RefAction 3 }} </del> {{ end }}
@ -172,11 +164,9 @@
{{ 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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ 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 }}
</span>
</span>
<div class="detail">
<div class="detail">
@ -188,11 +178,9 @@
{{ 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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ if and .AddedLabels ( not .RemovedLabels ) }}
{{ if and .AddedLabels ( not .RemovedLabels ) }}
{{ $ .locale .TrN ( len .AddedLabels ) "repo.issues.add_label" "repo.issues.add_labels" ( RenderLabels .AddedLabels ) $ createdStr | Safe }}
{{ $ .locale .TrN ( len .AddedLabels ) "repo.issues.add_label" "repo.issues.add_labels" ( RenderLabels .AddedLabels ) $ createdStr | Safe }}
{{ else if and ( not .AddedLabels ) .RemovedLabels }}
{{ else if and ( not .AddedLabels ) .RemovedLabels }}
@ -206,11 +194,9 @@
{{ 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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ 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 }}
</span>
</span>
</div>
</div>
@ -219,11 +205,9 @@
<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 }}
<a href=" {{ .Assignee .HomeLink }} ">
{{ template "shared/user/avatarlink" .Assignee }}
{{ avatar .Assignee }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Assignee .HomeLink }} "> {{ .Assignee .GetDisplayName }} </a>
<a class="author" {{ if gt .Assignee .ID 0 }} href=" {{ .Assignee .HomeLink }} " {{ end }} > {{ .Assignee .GetDisplayName }} </a>
{{ if eq .Poster .ID .Assignee .ID }}
{{ if eq .Poster .ID .Assignee .ID }}
{{ $ .locale .Tr "repo.issues.remove_self_assignment" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.remove_self_assignment" $ createdStr | Safe }}
{{ else }}
{{ else }}
@ -231,11 +215,9 @@
{{ end }}
{{ end }}
</span>
</span>
{{ else }}
{{ else }}
<a href=" {{ .Assignee .HomeLink }} ">
{{ template "shared/user/avatarlink" .Assignee }}
{{ avatar .Assignee }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Assignee .HomeLink }} "> {{ .Assignee .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Assignee }}
{{ if eq .Poster .ID .AssigneeID }}
{{ if eq .Poster .ID .AssigneeID }}
{{ $ .locale .Tr "repo.issues.self_assign_at" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.self_assign_at" $ createdStr | Safe }}
{{ else }}
{{ else }}
@ -248,44 +230,36 @@
{{ else if eq .Type 1 0 }}
{{ else if eq .Type 1 0 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.change_title_at" ( .OldTitle | RenderEmoji ) ( .NewTitle | RenderEmoji ) $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.change_title_at" ( .OldTitle | RenderEmoji ) ( .NewTitle | RenderEmoji ) $ createdStr | Safe }}
</span>
</span>
</div>
</div>
{{ else if eq .Type 1 1 }}
{{ else if eq .Type 1 1 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ 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 }}
</span>
</span>
</div>
</div>
{{ else if eq .Type 1 2 }}
{{ else if eq .Type 1 2 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.start_tracking_history" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.start_tracking_history" $ createdStr | Safe }}
</span>
</span>
</div>
</div>
{{ else if eq .Type 1 3 }}
{{ else if eq .Type 1 3 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.stop_tracking_history" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.stop_tracking_history" $ createdStr | Safe }}
</span>
</span>
{{ template "repo/issue/view_content/comments_delete_time" Dict "ctx" $ "comment" . }}
{{ template "repo/issue/view_content/comments_delete_time" Dict "ctx" $ "comment" . }}
@ -297,11 +271,9 @@
{{ else if eq .Type 1 4 }}
{{ else if eq .Type 1 4 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.add_time_history" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.add_time_history" $ createdStr | Safe }}
</span>
</span>
{{ template "repo/issue/view_content/comments_delete_time" Dict "ctx" $ "comment" . }}
{{ template "repo/issue/view_content/comments_delete_time" Dict "ctx" $ "comment" . }}
@ -313,33 +285,27 @@
{{ else if eq .Type 1 5 }}
{{ else if eq .Type 1 5 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.cancel_tracking_history" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.cancel_tracking_history" $ createdStr | Safe }}
</span>
</span>
</div>
</div>
{{ else if eq .Type 1 6 }}
{{ else if eq .Type 1 6 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.due_date_added" .Content $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.due_date_added" .Content $ createdStr | Safe }}
</span>
</span>
</div>
</div>
{{ else if eq .Type 1 7 }}
{{ else if eq .Type 1 7 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ parsedDeadline : = .Content | ParseDeadline }}
{{ $ parsedDeadline : = .Content | ParseDeadline }}
{{ $ .locale .Tr "repo.issues.due_date_modified" ( in dex $ parsedDeadline 0 ) ( in dex $ parsedDeadline 1 ) $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.due_date_modified" ( in dex $ parsedDeadline 0 ) ( in dex $ parsedDeadline 1 ) $ createdStr | Safe }}
</span>
</span>
@ -347,22 +313,18 @@
{{ else if eq .Type 1 8 }}
{{ else if eq .Type 1 8 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.due_date_remove" .Content $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.due_date_remove" .Content $ createdStr | Safe }}
</span>
</span>
</div>
</div>
{{ else if eq .Type 1 9 }}
{{ else if eq .Type 1 9 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.dependency.added_dependency" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.dependency.added_dependency" $ createdStr | Safe }}
</span>
</span>
{{ if .DependentIssue }}
{{ if .DependentIssue }}
@ -383,11 +345,9 @@
{{ else if eq .Type 2 0 }}
{{ else if eq .Type 2 0 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.dependency.removed_dependency" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.dependency.removed_dependency" $ createdStr | Safe }}
</span>
</span>
{{ if .DependentIssue }}
{{ if .DependentIssue }}
@ -424,7 +384,7 @@
<span class="text grey"> {{ if $ .Repository .OriginalURL }} </span>
<span class="text grey"> {{ if $ .Repository .OriginalURL }} </span>
<span class="text migrate">( {{ $ .locale .Tr "repo.migrated_from" ( $ .Repository .OriginalURL | Escape ) ( $ .Repository .GetOriginalURLHostname | Escape ) | Safe }} ) {{ end }} </span>
<span class="text migrate">( {{ $ .locale .Tr "repo.migrated_from" ( $ .Repository .OriginalURL | Escape ) ( $ .Repository .GetOriginalURLHostname | Escape ) | Safe }} ) {{ end }} </span>
{{ else }}
{{ else }}
<a class="author" {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} > {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ end }}
{{ end }}
{{ if eq .Review .Type 1 }}
{{ if eq .Review .Type 1 }}
@ -455,7 +415,7 @@
<span class="text grey"> {{ if $ .Repository .OriginalURL }} </span>
<span class="text grey"> {{ if $ .Repository .OriginalURL }} </span>
<span class="text migrate">( {{ $ .locale .Tr "repo.migrated_from" ( $ .Repository .OriginalURL | Escape ) ( $ .Repository .GetOriginalURLHostname | Escape ) | Safe }} ) {{ end }} </span>
<span class="text migrate">( {{ $ .locale .Tr "repo.migrated_from" ( $ .Repository .OriginalURL | Escape ) ( $ .Repository .GetOriginalURLHostname | Escape ) | Safe }} ) {{ end }} </span>
{{ else }}
{{ else }}
<a class="author" {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} > {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ end }}
{{ end }}
{{ $ .locale .Tr "repo.issues.review.left_comment" | Safe }}
{{ $ .locale .Tr "repo.issues.review.left_comment" | Safe }}
@ -583,7 +543,7 @@
<span class="text grey"> {{ if $ .Repository .OriginalURL }} </span>
<span class="text grey"> {{ if $ .Repository .OriginalURL }} </span>
<span class="text migrate">( {{ $ .locale .Tr "repo.migrated_from" ( $ .Repository .OriginalURL | Escape ) ( $ .Repository .GetOriginalURLHostname | Escape ) | Safe }} ) {{ end }} </span>
<span class="text migrate">( {{ $ .locale .Tr "repo.migrated_from" ( $ .Repository .OriginalURL | Escape ) ( $ .Repository .GetOriginalURLHostname | Escape ) | Safe }} ) {{ end }} </span>
{{ else }}
{{ else }}
<a class="author" {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} > {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ end }}
{{ end }}
{{ $ .locale .Tr "repo.issues.commented_at" ( .HashTag | Escape ) $ createdSubStr | Safe }}
{{ $ .locale .Tr "repo.issues.commented_at" ( .HashTag | Escape ) $ createdSubStr | Safe }}
</span>
</span>
@ -668,17 +628,15 @@
{{ else if eq .Type 2 3 }}
{{ else if eq .Type 2 3 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
{{ if .Content }}
{{ if .Content }}
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.lock_with_reason" .Content $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.lock_with_reason" .Content $ createdStr | Safe }}
</span>
</span>
{{ else }}
{{ else }}
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.lock_no_reason" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.lock_no_reason" $ createdStr | Safe }}
</span>
</span>
{{ end }}
{{ end }}
@ -686,33 +644,28 @@
{{ else if eq .Type 2 4 }}
{{ else if eq .Type 2 4 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.unlock_comment" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.unlock_comment" $ createdStr | Safe }}
</span>
</span>
</div>
</div>
{{ else if eq .Type 2 5 }}
{{ else if eq .Type 2 5 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a href=" {{ .Poster .HomeLink }} "> {{ .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 }}
</span>
</span>
</div>
</div>
{{ else if eq .Type 2 6 }}
{{ else if eq .Type 2 6 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ .locale .Tr "repo.issues.del_time_history" $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.del_time_history" $ createdStr | Safe }}
</span>
</span>
<div class="detail">
<div class="detail">
@ -723,11 +676,9 @@
{{ else if eq .Type 2 7 }}
{{ else if eq .Type 2 7 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ if ( gt .AssigneeID 0 ) }}
{{ if ( gt .AssigneeID 0 ) }}
{{ if .RemovedAssignee }}
{{ if .RemovedAssignee }}
{{ if eq .PosterID .AssigneeID }}
{{ if eq .PosterID .AssigneeID }}
@ -751,7 +702,7 @@
<div class="timeline-item event" id=" {{ .HashTag }} ">
<div class="timeline-item event" id=" {{ .HashTag }} ">
<span class="badge"> {{ svg "octicon-repo-push" }} </span>
<span class="badge"> {{ svg "octicon-repo-push" }} </span>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ if .IsForcePush }}
{{ if .IsForcePush }}
{{ $ .locale .Tr "repo.issues.force_push_codes" ( $ .Issue .PullRequest .HeadBranch | Escape ) ( ShortSha .OldCommit ) ( ( $ .Issue .Repo .CommitLink .OldCommit ) | Escape ) ( ShortSha .NewCommit ) ( ( $ .Issue .Repo .CommitLink .NewCommit ) | Escape ) $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.force_push_codes" ( $ .Issue .PullRequest .HeadBranch | Escape ) ( ShortSha .OldCommit ) ( ( $ .Issue .Repo .CommitLink .OldCommit ) | Escape ) ( ShortSha .NewCommit ) ( ( $ .Issue .Repo .CommitLink .NewCommit ) | Escape ) $ createdStr | Safe }}
{{ else }}
{{ else }}
@ -766,11 +717,9 @@
{{ 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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ if gt .OldProjectID 0 }}
{{ if gt .OldProjectID 0 }}
{{ if gt .ProjectID 0 }}
{{ if gt .ProjectID 0 }}
{{ $ .locale .Tr "repo.issues.change_project_at" ( .OldProject .Title | Escape ) ( .Project .Title | Escape ) $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.change_project_at" ( .OldProject .Title | Escape ) ( .Project .Title | Escape ) $ createdStr | Safe }}
@ -791,7 +740,7 @@
</a>
</a>
<span class="badge grey"> {{ svg "octicon-x" 1 6 }} </span>
<span class="badge grey"> {{ svg "octicon-x" 1 6 }} </span>
<span class="text grey">
<span class="text grey">
<a class="author" {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} > {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ $ reviewerName : = "" }}
{{ $ reviewerName : = "" }}
{{ if eq .Review .OriginalAuthor "" }}
{{ if eq .Review .OriginalAuthor "" }}
{{ $ reviewerName = .Review .Reviewer .Name }}
{{ $ reviewerName = .Review .Reviewer .Name }}
@ -825,11 +774,9 @@
{{ else if eq .Type 3 3 }}
{{ else if eq .Type 3 3 }}
<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>
<a href=" {{ .Poster .HomeLink }} ">
{{ template "shared/user/avatarlink" .Poster }}
{{ avatar .Poster }}
</a>
<span class="text grey">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ if and .OldRef .NewRef }}
{{ if and .OldRef .NewRef }}
{{ $ .locale .Tr "repo.issues.change_ref_at" ( .OldRef | Escape ) ( .NewRef | Escape ) $ createdStr | Safe }}
{{ $ .locale .Tr "repo.issues.change_ref_at" ( .OldRef | Escape ) ( .NewRef | Escape ) $ createdStr | Safe }}
{{ else if .OldRef }}
{{ else if .OldRef }}
@ -843,7 +790,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">
<span class="text grey">
<a class="author" href=" {{ .Poster .HomeLink }} "> {{ .Poster .GetDisplayName }} </a>
{{ template "shared/user/authorlink" .Poster }}
{{ if eq .Type 3 4 }} {{ $ .locale .Tr "repo.pulls.auto_merge_newly_scheduled_comment" $ createdStr | Safe }}
{{ if eq .Type 3 4 }} {{ $ .locale .Tr "repo.pulls.auto_merge_newly_scheduled_comment" $ createdStr | Safe }}
{{ else }} {{ $ .locale .Tr "repo.pulls.auto_merge_canceled_schedule_comment" $ createdStr | Safe }} {{ end }}
{{ else }} {{ $ .locale .Tr "repo.pulls.auto_merge_canceled_schedule_comment" $ createdStr | Safe }} {{ end }}
</span>
</span>