2019-02-05 04:38:11 -07:00
|
|
|
{{ template "base/alert" }}
|
2017-03-16 23:57:43 -06:00
|
|
|
{{range .Issue.Comments}}
|
2017-12-10 21:37:04 -07:00
|
|
|
{{ $createdStr:= TimeSinceUnix .CreatedUnix $.Lang }}
|
2017-03-16 23:57:43 -06:00
|
|
|
|
2019-02-18 13:55:04 -07:00
|
|
|
<!-- 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE_REF, 4 = COMMIT_REF,
|
|
|
|
5 = COMMENT_REF, 6 = PULL_REF, 7 = COMMENT_LABEL, 12 = START_TRACKING,
|
|
|
|
13 = STOP_TRACKING, 14 = ADD_TIME_MANUAL, 16 = ADDED_DEADLINE, 17 = MODIFIED_DEADLINE,
|
|
|
|
18 = REMOVED_DEADLINE, 19 = ADD_DEPENDENCY, 20 = REMOVE_DEPENDENCY, 21 = CODE,
|
2019-12-27 13:30:58 -07:00
|
|
|
22 = REVIEW, 23 = ISSUE_LOCKED, 24 = ISSUE_UNLOCKED, 25 = TARGET_BRANCH_CHANGED,
|
2020-05-20 06:47:24 -06:00
|
|
|
26 = DELETE_TIME_MANUAL, 27 = REVIEW_REQUEST, 28 = MERGE_PULL_REQUEST,
|
2020-08-16 21:07:38 -06:00
|
|
|
29 = PULL_PUSH_EVENT, 30 = PROJECT_CHANGED, 31 = PROJECT_BOARD_CHANGED -->
|
2017-03-16 23:57:43 -06:00
|
|
|
{{if eq .Type 0}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item comment" id="{{.HashTag}}">
|
2019-07-07 20:14:12 -06:00
|
|
|
{{if .OriginalAuthor }}
|
2020-04-10 16:01:41 -06:00
|
|
|
<span class="timeline-avatar"><img src="/img/avatar_default.png"></span>
|
2019-07-07 20:14:12 -06:00
|
|
|
{{else}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<a class="timeline-avatar" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>
|
2020-12-03 11:46:11 -07:00
|
|
|
{{avatar .Poster}}
|
2017-03-16 23:57:43 -06:00
|
|
|
</a>
|
2019-07-07 20:14:12 -06:00
|
|
|
{{end}}
|
2020-11-07 16:15:09 -07:00
|
|
|
<div class="content comment-container">
|
2020-11-01 13:04:26 -07:00
|
|
|
<div class="ui top attached header comment-header df ac sb">
|
|
|
|
<div class="comment-header-left df ac">
|
2020-10-31 07:17:52 -06:00
|
|
|
{{if .OriginalAuthor }}
|
2020-11-05 12:34:04 -07:00
|
|
|
<span class="text black mr-2">
|
|
|
|
<i class="fa {{MigrationIcon $.Repository.GetOriginalURLHostname}}" aria-hidden="true"></i>
|
|
|
|
{{ .OriginalAuthor }}
|
|
|
|
</span>
|
|
|
|
<span class="text grey">
|
|
|
|
{{$.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}} {{if $.Repository.OriginalURL}}
|
|
|
|
</span>
|
|
|
|
<span class="text migrate">
|
|
|
|
({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}}
|
|
|
|
</span>
|
2020-10-31 07:17:52 -06:00
|
|
|
{{else}}
|
2020-11-05 12:34:04 -07:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>
|
|
|
|
{{.Poster.GetDisplayName}}
|
|
|
|
</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}
|
|
|
|
</span>
|
2020-10-31 07:17:52 -06:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2020-11-01 13:04:26 -07:00
|
|
|
<div class="comment-header-right actions df ac">
|
2020-10-31 07:17:52 -06:00
|
|
|
{{if not $.Repository.IsArchived}}
|
2020-11-28 08:52:29 -07:00
|
|
|
{{if or (and (eq .PosterID .Issue.PosterID) (eq .Issue.OriginalAuthorID 0)) (eq .Issue.OriginalAuthorID .OriginalAuthorID) }}
|
2020-10-21 17:47:16 -06:00
|
|
|
<div class="ui basic label">
|
2020-09-10 12:09:14 -06:00
|
|
|
{{$.i18n.Tr "repo.issues.poster"}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-11-19 11:33:42 -07:00
|
|
|
{{if gt .ShowTag 0}}
|
2020-10-21 17:47:16 -06:00
|
|
|
<div class="ui basic label">
|
2020-09-10 12:09:14 -06:00
|
|
|
{{if eq .ShowTag 2}}
|
2019-11-19 11:33:42 -07:00
|
|
|
{{$.i18n.Tr "repo.issues.collaborator"}}
|
|
|
|
{{else if eq .ShowTag 3}}
|
|
|
|
{{$.i18n.Tr "repo.issues.owner"}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-12-27 16:43:56 -07:00
|
|
|
{{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
2020-06-05 04:10:10 -06:00
|
|
|
{{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" . "delete" true "diff" false "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
|
2020-10-31 07:17:52 -06:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
2020-11-05 12:34:04 -07:00
|
|
|
<div class="ui attached segment comment-body">
|
2020-05-01 11:58:45 -06:00
|
|
|
<div class="render-content markdown">
|
2017-03-16 23:57:43 -06:00
|
|
|
{{if .RenderedContent}}
|
|
|
|
{{.RenderedContent|Str2html}}
|
|
|
|
{{else}}
|
|
|
|
<span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2019-11-19 11:33:42 -07:00
|
|
|
<div id="comment-{{.ID}}" class="raw-content hide">{{.Content}}</div>
|
2019-10-15 06:19:32 -06:00
|
|
|
<div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.RepoLink}}/comments/{{.ID}}" data-context="{{$.RepoLink}}" data-attachment-url="{{$.RepoLink}}/comments/{{.ID}}/attachments"></div>
|
2020-05-02 08:03:47 -06:00
|
|
|
{{if .Attachments}}
|
2020-10-10 17:49:59 -06:00
|
|
|
<div class="dropzone-attachments">
|
|
|
|
<div class="ui clearing divider"></div>
|
|
|
|
<div class="ui middle aligned padded grid">
|
|
|
|
{{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Attachments}}
|
|
|
|
</div>
|
2020-04-20 22:15:41 -06:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
2017-12-03 16:14:26 -07:00
|
|
|
{{$reactions := .Reactions.GroupByType}}
|
|
|
|
{{if $reactions}}
|
|
|
|
<div class="ui attached segment reactions">
|
2019-12-27 16:43:56 -07:00
|
|
|
{{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID) "Reactions" $reactions}}
|
2017-12-03 16:14:26 -07:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else if eq .Type 1}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-11-15 13:58:16 -07:00
|
|
|
<span class="badge bg-green text-white">{{svg "octicon-dot-fill"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2017-03-16 23:57:43 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
2020-04-30 07:49:12 -06:00
|
|
|
{{if .Issue.IsPull }}
|
|
|
|
{{$.i18n.Tr "repo.pulls.reopened_at" .EventTag $createdStr | Safe}}
|
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.reopened_at" .EventTag $createdStr | Safe}}
|
|
|
|
{{end}}
|
2020-04-18 18:15:07 -06:00
|
|
|
</span>
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
|
|
|
{{else if eq .Type 2}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-11-15 13:58:16 -07:00
|
|
|
<span class="badge bg-red text-white">{{svg "octicon-circle-slash"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2017-03-16 23:57:43 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
2020-04-30 07:49:12 -06:00
|
|
|
{{if .Issue.IsPull }}
|
|
|
|
{{$.i18n.Tr "repo.pulls.closed_at" .EventTag $createdStr | Safe}}
|
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.closed_at" .EventTag $createdStr | Safe}}
|
|
|
|
{{end}}
|
2020-04-18 18:15:07 -06:00
|
|
|
</span>
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
2020-04-13 19:06:23 -06:00
|
|
|
{{else if eq .Type 28}}
|
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-11-15 13:58:16 -07:00
|
|
|
<span class="badge bg-purple text-white">{{svg "octicon-git-merge"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2020-04-13 19:06:23 -06:00
|
|
|
</a>
|
|
|
|
<span class="text grey">
|
2020-04-18 18:15:07 -06:00
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
2020-04-13 19:06:23 -06:00
|
|
|
{{$link := printf "%s/commit/%s" $.Repository.HTMLURL $.Issue.PullRequest.MergedCommitID}}
|
2020-08-27 22:37:05 -06:00
|
|
|
{{$.i18n.Tr "repo.issues.pull_merged_at" $link (ShortSha $.Issue.PullRequest.MergedCommitID) ($.BaseTarget|Escape) $createdStr | Str2html}}
|
2020-04-13 19:06:23 -06:00
|
|
|
</span>
|
|
|
|
</div>
|
2019-11-18 06:13:07 -07:00
|
|
|
{{else if eq .Type 3 5 6}}
|
|
|
|
{{ $refFrom:= "" }}
|
|
|
|
{{if ne .RefRepoID .Issue.RepoID}}
|
|
|
|
{{ $refFrom = $.i18n.Tr "repo.issues.ref_from" .RefRepo.FullName }}
|
|
|
|
{{end}}
|
|
|
|
{{ $refTr := "repo.issues.ref_issue_from" }}
|
|
|
|
{{if .Issue.IsPull}}
|
|
|
|
{{ $refTr = "repo.issues.ref_pull_from" }}
|
|
|
|
{{else if eq .RefAction 1 }}
|
|
|
|
{{ $refTr = "repo.issues.ref_closing_from" }}
|
|
|
|
{{else if eq .RefAction 2 }}
|
|
|
|
{{ $refTr = "repo.issues.ref_reopening_from" }}
|
|
|
|
{{end}}
|
|
|
|
{{ $createdStr:= TimeSinceUnix .CreatedUnix $.Lang }}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-bookmark"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2019-09-19 23:45:38 -06:00
|
|
|
</a>
|
|
|
|
{{if eq .RefAction 3}}<del>{{end}}
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
2019-11-18 06:13:07 -07:00
|
|
|
{{$.i18n.Tr $refTr .EventTag $createdStr .RefCommentHTMLURL $refFrom | Safe}}
|
2019-09-19 23:45:38 -06:00
|
|
|
</span>
|
|
|
|
{{if eq .RefAction 3}}</del>{{end}}
|
|
|
|
|
|
|
|
<div class="detail">
|
|
|
|
<span class="text grey"><a href="{{.RefIssueHTMLURL}}"><b>{{.RefIssueTitle | Str2html}}</b> {{.RefIssueIdent | Str2html}}</a></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-16 23:57:43 -06:00
|
|
|
{{else if eq .Type 4}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-bookmark"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2017-03-16 23:57:43 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}}
|
|
|
|
</span>
|
2017-03-16 23:57:43 -06:00
|
|
|
<div class="detail">
|
2020-09-11 14:19:00 -06:00
|
|
|
{{svg "octicon-git-commit"}}
|
2017-03-16 23:57:43 -06:00
|
|
|
<span class="text grey">{{.Content | Str2html}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else if eq .Type 7}}
|
2020-10-25 15:49:48 -06:00
|
|
|
{{if or .AddedLabels .RemovedLabels}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-tag"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2017-03-16 23:57:43 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
2020-10-25 15:49:48 -06:00
|
|
|
{{if and .AddedLabels (not .RemovedLabels)}}
|
|
|
|
{{$.i18n.Tr (TrN $.i18n.Lang (len .AddedLabels) "repo.issues.add_label" "repo.issues.add_labels") (RenderLabels .AddedLabels) $createdStr | Safe}}
|
|
|
|
{{else if and (not .AddedLabels) .RemovedLabels}}
|
|
|
|
{{$.i18n.Tr (TrN $.i18n.Lang (len .RemovedLabels) "repo.issues.remove_label" "repo.issues.remove_labels") (RenderLabels .RemovedLabels) $createdStr | Safe}}
|
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.add_remove_labels" (RenderLabels .AddedLabels) (RenderLabels .RemovedLabels) $createdStr | Safe}}
|
|
|
|
{{end}}
|
2020-04-18 18:15:07 -06:00
|
|
|
</span>
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{else if eq .Type 8}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-milestone"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2017-03-16 23:57:43 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{if gt .OldMilestoneID 0}}{{if gt .MilestoneID 0}}{{$.i18n.Tr "repo.issues.change_milestone_at" (.OldMilestone.Name|Escape) (.Milestone.Name|Escape) $createdStr | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_milestone_at" (.OldMilestone.Name|Escape) $createdStr | Safe}}{{end}}{{else if gt .MilestoneID 0}}{{$.i18n.Tr "repo.issues.add_milestone_at" (.Milestone.Name|Escape) $createdStr | Safe}}{{end}}
|
|
|
|
</span>
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
|
|
|
{{else if eq .Type 9}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-person"}}</span>
|
2018-05-09 10:29:04 -06:00
|
|
|
{{if gt .AssigneeID 0}}
|
|
|
|
{{if .RemovedAssignee}}
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Assignee.HomeLink}}">
|
|
|
|
{{avatar .Assignee}}
|
2018-05-09 10:29:04 -06:00
|
|
|
</a>
|
|
|
|
<span class="text grey">
|
2020-04-18 18:15:07 -06:00
|
|
|
<a class="author" href="{{.Assignee.HomeLink}}">{{.Assignee.GetDisplayName}}</a>
|
2019-01-19 12:16:46 -07:00
|
|
|
{{ if eq .Poster.ID .Assignee.ID }}
|
|
|
|
{{$.i18n.Tr "repo.issues.remove_self_assignment" $createdStr | Safe}}
|
|
|
|
{{ else }}
|
2019-05-08 02:41:35 -06:00
|
|
|
{{$.i18n.Tr "repo.issues.remove_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
|
2019-01-19 12:16:46 -07:00
|
|
|
{{ end }}
|
2018-05-09 10:29:04 -06:00
|
|
|
</span>
|
|
|
|
{{else}}
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Assignee.HomeLink}}">
|
|
|
|
{{avatar .Assignee}}
|
2018-05-09 10:29:04 -06:00
|
|
|
</a>
|
|
|
|
<span class="text grey">
|
2020-04-18 18:15:07 -06:00
|
|
|
<a class="author" href="{{.Assignee.HomeLink}}">{{.Assignee.GetDisplayName}}</a>
|
2018-05-09 10:29:04 -06:00
|
|
|
{{if eq .Poster.ID .AssigneeID}}
|
|
|
|
{{$.i18n.Tr "repo.issues.self_assign_at" $createdStr | Safe}}
|
|
|
|
{{else}}
|
2019-05-08 02:41:35 -06:00
|
|
|
{{$.i18n.Tr "repo.issues.add_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
|
2018-05-09 10:29:04 -06:00
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
|
|
|
{{else if eq .Type 10}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-pencil"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2018-02-18 13:06:37 -07:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
2020-08-23 19:44:53 -06:00
|
|
|
{{$.i18n.Tr "repo.issues.change_title_at" (.OldTitle|RenderEmoji) (.NewTitle|RenderEmoji) $createdStr | Safe}}
|
2018-02-18 13:06:37 -07:00
|
|
|
</span>
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
|
|
|
{{else if eq .Type 11}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-git-branch"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2018-02-18 13:06:37 -07:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.delete_branch_at" (.CommitSHA|Escape) $createdStr | Safe}}
|
2018-02-18 13:06:37 -07:00
|
|
|
</span>
|
2017-03-16 23:57:43 -06:00
|
|
|
</div>
|
2019-07-06 16:03:00 -06:00
|
|
|
{{else if eq .Type 12}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2017-09-12 00:48:13 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.start_tracking_history" $createdStr | Safe}}
|
|
|
|
</span>
|
2017-09-12 00:48:13 -06:00
|
|
|
</div>
|
|
|
|
{{else if eq .Type 13}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2017-09-12 00:48:13 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.stop_tracking_history" $createdStr | Safe}}
|
|
|
|
</span>
|
2017-09-12 00:48:13 -06:00
|
|
|
<div class="detail">
|
2020-09-11 14:19:00 -06:00
|
|
|
{{svg "octicon-clock"}}
|
2017-09-12 00:48:13 -06:00
|
|
|
<span class="text grey">{{.Content}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else if eq .Type 14}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2017-09-12 00:48:13 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.add_time_history" $createdStr | Safe}}
|
|
|
|
</span>
|
2017-09-12 00:48:13 -06:00
|
|
|
<div class="detail">
|
2020-09-11 14:19:00 -06:00
|
|
|
{{svg "octicon-clock"}}
|
2017-09-12 00:48:13 -06:00
|
|
|
<span class="text grey">{{.Content}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else if eq .Type 15}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2017-09-12 00:48:13 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.cancel_tracking_history" $createdStr | Safe}}
|
|
|
|
</span>
|
2017-09-12 00:48:13 -06:00
|
|
|
</div>
|
2018-05-01 13:05:28 -06:00
|
|
|
{{else if eq .Type 16}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2018-05-01 13:05:28 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.due_date_added" .Content $createdStr | Safe}}
|
2018-05-01 13:05:28 -06:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{else if eq .Type 17}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2018-05-01 13:05:28 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.due_date_modified" (.Content | ParseDeadline) $createdStr | Safe}}
|
2018-05-01 13:05:28 -06:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{else if eq .Type 18}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2018-05-01 13:05:28 -06:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.due_date_remove" .Content $createdStr | Safe}}
|
2018-05-01 13:05:28 -06:00
|
|
|
</span>
|
|
|
|
</div>
|
2018-07-17 15:23:58 -06:00
|
|
|
{{else if eq .Type 19}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-package-dependents"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2019-11-19 11:33:42 -07:00
|
|
|
</a>
|
|
|
|
<span class="text grey">
|
2020-04-18 18:15:07 -06:00
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.dependency.added_dependency" $createdStr | Safe}}
|
2019-11-19 11:33:42 -07:00
|
|
|
</span>
|
2020-01-21 03:18:52 -07:00
|
|
|
{{if .DependentIssue}}
|
|
|
|
<div class="detail">
|
2020-09-11 14:19:00 -06:00
|
|
|
{{svg "octicon-plus"}}
|
2020-01-21 03:18:52 -07:00
|
|
|
<span class="text grey">
|
|
|
|
<a href="{{.DependentIssue.HTMLURL}}">
|
|
|
|
{{if eq .DependentIssue.RepoID .Issue.RepoID}}
|
|
|
|
#{{.DependentIssue.Index}} {{.DependentIssue.Title}}
|
|
|
|
{{else}}
|
|
|
|
{{.DependentIssue.Repo.FullName}}#{{.DependentIssue.Index}} - {{.DependentIssue.Title}}
|
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-11-19 11:33:42 -07:00
|
|
|
</div>
|
2018-07-17 15:23:58 -06:00
|
|
|
{{else if eq .Type 20}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-package-dependents"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2019-11-19 11:33:42 -07:00
|
|
|
</a>
|
|
|
|
<span class="text grey">
|
2020-04-18 18:15:07 -06:00
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.dependency.removed_dependency" $createdStr | Safe}}
|
2019-11-19 11:33:42 -07:00
|
|
|
</span>
|
2020-01-21 03:18:52 -07:00
|
|
|
{{if .DependentIssue}}
|
|
|
|
<div class="detail">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="text grey">{{svg "octicon-trashcan"}}</span>
|
2020-01-21 03:18:52 -07:00
|
|
|
<span class="text grey">
|
|
|
|
<a href="{{.DependentIssue.HTMLURL}}">
|
|
|
|
{{if eq .DependentIssue.RepoID .Issue.RepoID}}
|
|
|
|
#{{.DependentIssue.Index}} {{.DependentIssue.Title}}
|
|
|
|
{{else}}
|
|
|
|
{{.DependentIssue.Repo.FullName}}#{{.DependentIssue.Index}} - {{.DependentIssue.Title}}
|
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-11-19 11:33:42 -07:00
|
|
|
</div>
|
2018-08-05 22:43:22 -06:00
|
|
|
{{else if eq .Type 22}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item-group">
|
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-01-23 10:28:15 -07:00
|
|
|
{{if .OriginalAuthor }}
|
|
|
|
{{else}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<a class="timeline-avatar"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>
|
2020-12-03 11:46:11 -07:00
|
|
|
{{avatar .Poster}}
|
2020-04-10 16:01:41 -06:00
|
|
|
</a>
|
2020-01-23 10:28:15 -07:00
|
|
|
{{end}}
|
2020-11-26 12:33:28 -07:00
|
|
|
<span class="badge {{if eq .Review.Type 1}}bg-green
|
|
|
|
{{- else if eq .Review.Type 2}}bg-grey
|
|
|
|
{{- else if eq .Review.Type 3}}bg-red
|
|
|
|
{{- else}}bg-grey{{end}} text-white">{{svg (printf "octicon-%s" .Review.Type.Icon)}}</span>
|
2020-04-10 16:01:41 -06:00
|
|
|
<span class="text grey">
|
|
|
|
{{if .OriginalAuthor }}
|
|
|
|
<span class="text black"><i class="fa {{MigrationIcon $.Repository.GetOriginalURLHostname}}" aria-hidden="true"></i> {{ .OriginalAuthor }}</span><span class="text grey"> {{if $.Repository.OriginalURL}}</span><span class="text migrate">({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}}</span>
|
|
|
|
{{else}}
|
2020-04-18 18:15:07 -06:00
|
|
|
<a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a>
|
2020-04-10 16:01:41 -06:00
|
|
|
{{end}}
|
2020-01-24 14:23:10 -07:00
|
|
|
|
2020-04-10 16:01:41 -06:00
|
|
|
{{if eq .Review.Type 1}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.approve" $createdStr | Safe}}
|
|
|
|
{{else if eq .Review.Type 2}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}}
|
|
|
|
{{else if eq .Review.Type 3}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.reject" $createdStr | Safe}}
|
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}}
|
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2019-07-06 16:03:00 -06:00
|
|
|
{{if .Content}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item comment">
|
2020-11-07 16:15:09 -07:00
|
|
|
<div class="content comment-container">
|
|
|
|
<div class="ui top attached header comment-header df ac sb">
|
2020-04-10 16:01:41 -06:00
|
|
|
<span class="text grey">
|
|
|
|
{{if .OriginalAuthor }}
|
|
|
|
<span class="text black"><i class="fa {{MigrationIcon $.Repository.GetOriginalURLHostname}}" aria-hidden="true"></i> {{ .OriginalAuthor }}</span><span class="text grey"> {{if $.Repository.OriginalURL}}</span><span class="text migrate">({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}}</span>
|
|
|
|
{{else}}
|
2020-04-18 18:15:07 -06:00
|
|
|
<a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a>
|
2020-04-10 16:01:41 -06:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.review.left_comment" | Safe}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2020-11-05 12:34:04 -07:00
|
|
|
<div class="ui attached segment comment-body">
|
2020-05-01 11:58:45 -06:00
|
|
|
<div class="render-content markdown">
|
2020-04-28 12:05:39 -06:00
|
|
|
{{if .RenderedContent}}
|
|
|
|
{{.RenderedContent|Str2html}}
|
|
|
|
{{else}}
|
|
|
|
<span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
|
|
|
|
{{end}}
|
2020-04-10 16:01:41 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-06 16:03:00 -06:00
|
|
|
</div>
|
2020-04-10 16:01:41 -06:00
|
|
|
</div>
|
2019-07-06 16:03:00 -06:00
|
|
|
{{end}}
|
2020-04-18 07:50:25 -06:00
|
|
|
|
2020-04-10 16:01:41 -06:00
|
|
|
{{if .Review.CodeComments}}
|
|
|
|
<div class="timeline-item event">
|
|
|
|
{{ range $filename, $lines := .Review.CodeComments}}
|
|
|
|
{{range $line, $comms := $lines}}
|
|
|
|
<div class="ui segments">
|
|
|
|
<div class="ui segment">
|
|
|
|
{{$invalid := (index $comms 0).Invalidated}}
|
2020-04-18 07:50:25 -06:00
|
|
|
{{$resolved := (index $comms 0).IsResolved}}
|
|
|
|
{{$resolveDoer := (index $comms 0).ResolveDoer}}
|
|
|
|
{{$isNotPending := (not (eq (index $comms 0).Review.Type 0))}}
|
|
|
|
{{if or $invalid $resolved}}
|
2020-10-15 02:17:48 -06:00
|
|
|
<button id="show-outdated-{{(index $comms 0).ID}}" data-comment="{{(index $comms 0).ID}}" class="{{if not $resolved}}hide {{end}}ui compact right labeled button show-outdated">
|
2020-09-11 14:19:00 -06:00
|
|
|
{{svg "octicon-unfold"}}
|
2020-10-15 02:17:48 -06:00
|
|
|
{{if $resolved}}
|
2020-04-18 07:50:25 -06:00
|
|
|
{{$.i18n.Tr "repo.issues.review.show_resolved"}}
|
2020-10-15 02:17:48 -06:00
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.show_outdated"}}
|
2020-04-18 07:50:25 -06:00
|
|
|
{{end}}
|
2020-04-10 16:01:41 -06:00
|
|
|
</button>
|
2020-10-15 02:17:48 -06:00
|
|
|
<button id="hide-outdated-{{(index $comms 0).ID}}" data-comment="{{(index $comms 0).ID}}" class="{{if $resolved}}hide {{end}}ui compact right labeled button hide-outdated">
|
2020-09-11 14:19:00 -06:00
|
|
|
{{svg "octicon-fold"}}
|
2020-10-15 02:17:48 -06:00
|
|
|
{{if $resolved}}
|
2020-04-18 07:50:25 -06:00
|
|
|
{{$.i18n.Tr "repo.issues.review.hide_resolved"}}
|
2020-10-15 02:17:48 -06:00
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.hide_outdated"}}
|
2020-04-18 07:50:25 -06:00
|
|
|
{{end}}
|
2020-04-10 16:01:41 -06:00
|
|
|
</button>
|
|
|
|
{{end}}
|
2020-10-15 02:17:48 -06:00
|
|
|
<a href="{{(index $comms 0).CodeCommentURL}}" class="file-comment">{{$filename}}</a>
|
2020-10-19 22:48:04 -06:00
|
|
|
{{if $invalid }}
|
2020-10-21 17:47:16 -06:00
|
|
|
<span class="ui label basic small yellow">
|
2020-10-15 02:17:48 -06:00
|
|
|
{{$.i18n.Tr "repo.issues.review.outdated"}}
|
|
|
|
</span>
|
|
|
|
{{end}}
|
2020-04-10 16:01:41 -06:00
|
|
|
</div>
|
|
|
|
{{$diff := (CommentMustAsDiff (index $comms 0))}}
|
|
|
|
{{if $diff}}
|
|
|
|
{{$file := (index $diff.Files 0)}}
|
2020-10-15 02:17:48 -06:00
|
|
|
<div id="code-preview-{{(index $comms 0).ID}}" class="ui table segment{{if $resolved}} hide{{end}}">
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}}">
|
|
|
|
<div class="file-body file-code code-view code-diff code-diff-unified">
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
{{template "repo/diff/section_unified" dict "file" $file "root" $}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2018-08-05 22:43:22 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-10 16:01:41 -06:00
|
|
|
{{end}}
|
2020-10-15 02:17:48 -06:00
|
|
|
<div id="code-comments-{{(index $comms 0).ID}}" class="ui segment{{if $resolved}} hide{{end}}">
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="ui comments">
|
|
|
|
{{range $comms}}
|
|
|
|
{{ $createdSubStr:= TimeSinceUnix .CreatedUnix $.Lang }}
|
2020-11-05 12:34:04 -07:00
|
|
|
<div class="comment code-comment" id="{{.HashTag}}">
|
2020-06-03 00:09:03 -06:00
|
|
|
{{if not .OriginalAuthor }}
|
|
|
|
<a class="avatar">
|
2020-12-03 11:46:11 -07:00
|
|
|
{{avatar .Poster}}
|
2020-06-03 00:09:03 -06:00
|
|
|
</a>
|
|
|
|
{{end}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="content">
|
2020-11-05 12:34:04 -07:00
|
|
|
<span class="text grey">
|
|
|
|
{{if .OriginalAuthor }}
|
|
|
|
<span class="text black"><i class="fa {{MigrationIcon $.Repository.GetOriginalURLHostname}}" aria-hidden="true"></i> {{ .OriginalAuthor }}</span><span class="text grey"> {{if $.Repository.OriginalURL}}</span><span class="text migrate">({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}}</span>
|
|
|
|
{{else}}
|
|
|
|
<a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{end}}
|
|
|
|
{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdSubStr | Safe}}
|
|
|
|
</span>
|
|
|
|
<div class="text comment-content">
|
|
|
|
<div class="render-content markdown">
|
|
|
|
{{if .RenderedContent}}
|
|
|
|
{{.RenderedContent|Str2html}}
|
|
|
|
{{else}}
|
|
|
|
<span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
|
|
|
|
{{end}}
|
2020-10-02 09:13:46 -06:00
|
|
|
</div>
|
2020-11-05 12:34:04 -07:00
|
|
|
<div class="raw-content hide">{{.Content}}</div>
|
2018-08-05 22:43:22 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-10 16:01:41 -06:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{template "repo/diff/comment_form_datahandler" dict "hidden" true "reply" (index $comms 0).ReviewID "root" $ "comment" (index $comms 0)}}
|
2020-04-18 07:50:25 -06:00
|
|
|
|
|
|
|
{{if and $.CanMarkConversation $isNotPending}}
|
|
|
|
<button class="ui tiny button resolve-conversation" data-action="{{if not $resolved}}Resolve{{else}}UnResolve{{end}}" data-comment-id="{{(index $comms 0).ID}}" data-update-url="{{$.RepoLink}}/issues/resolve_conversation" >
|
|
|
|
{{if $resolved}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.un_resolve_conversation"}}
|
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.resolve_conversation"}}
|
|
|
|
{{end}}
|
|
|
|
</button>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if $resolved}}
|
|
|
|
<span class="ui grey text"><b>{{$resolveDoer.Name}}</b> {{$.i18n.Tr "repo.issues.review.resolved_by"}}</span>
|
|
|
|
{{end}}
|
2018-08-05 22:43:22 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-10 16:01:41 -06:00
|
|
|
{{end}}
|
2018-08-05 22:43:22 -06:00
|
|
|
{{end}}
|
2020-04-10 16:01:41 -06:00
|
|
|
</div>
|
2018-08-05 22:43:22 -06:00
|
|
|
{{end}}
|
2019-07-06 16:03:00 -06:00
|
|
|
</div>
|
2019-02-18 13:55:04 -07:00
|
|
|
{{else if eq .Type 23}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-lock"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2019-02-18 13:55:04 -07:00
|
|
|
</a>
|
|
|
|
{{ if .Content }}
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.lock_with_reason" .Content $createdStr | Safe}}
|
2019-07-06 16:03:00 -06:00
|
|
|
</span>
|
2019-02-18 13:55:04 -07:00
|
|
|
{{ else }}
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.lock_no_reason" $createdStr | Safe}}
|
2019-07-06 16:03:00 -06:00
|
|
|
</span>
|
2019-02-18 13:55:04 -07:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{else if eq .Type 24}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-key"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2019-02-18 13:55:04 -07:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.unlock_comment" $createdStr | Safe}}
|
|
|
|
</span>
|
2019-02-18 13:55:04 -07:00
|
|
|
</div>
|
2019-12-15 23:20:25 -07:00
|
|
|
{{else if eq .Type 25}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-git-branch"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2019-12-15 23:20:25 -07:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a>
|
|
|
|
{{$.i18n.Tr "repo.pulls.change_target_branch_at" (.OldRef|Escape) (.NewRef|Escape) $createdStr | Safe}}
|
2019-12-15 23:20:25 -07:00
|
|
|
</span>
|
|
|
|
</div>
|
2019-12-27 13:30:58 -07:00
|
|
|
{{else if eq .Type 26}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-clock"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2019-12-27 13:30:58 -07:00
|
|
|
</a>
|
2020-04-18 18:15:07 -06:00
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{$.i18n.Tr "repo.issues.del_time_history" $createdStr | Safe}}
|
|
|
|
</span>
|
2019-12-27 13:30:58 -07:00
|
|
|
<div class="detail">
|
2020-09-11 14:19:00 -06:00
|
|
|
{{svg "octicon-clock"}}
|
2019-12-27 13:30:58 -07:00
|
|
|
<span class="text grey">{{.Content}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-06 10:33:34 -06:00
|
|
|
{{else if eq .Type 27}}
|
2020-04-10 16:01:41 -06:00
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-eye"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2020-04-06 10:33:34 -06:00
|
|
|
</a>
|
|
|
|
<span class="text grey">
|
2020-04-18 18:15:07 -06:00
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
2020-10-12 13:55:13 -06:00
|
|
|
{{if (gt .AssigneeID 0)}}
|
|
|
|
{{if .RemovedAssignee}}
|
|
|
|
{{if eq .PosterID .AssigneeID}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.remove_review_request_self" $createdStr | Safe}}
|
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.remove_review_request" (.Assignee.GetDisplayName|Escape) $createdStr | Safe}}
|
|
|
|
{{end}}
|
2020-04-06 10:33:34 -06:00
|
|
|
{{else}}
|
2020-10-12 13:55:13 -06:00
|
|
|
{{$.i18n.Tr "repo.issues.review.add_review_request" (.Assignee.GetDisplayName|Escape) $createdStr | Safe}}
|
2020-04-06 10:33:34 -06:00
|
|
|
{{end}}
|
|
|
|
{{else}}
|
2020-10-12 13:55:13 -06:00
|
|
|
{{if .RemovedAssignee}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.remove_review_request" (.AssigneeTeam.Name|Escape) $createdStr | Safe}}
|
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.review.add_review_request" (.AssigneeTeam.Name|Escape) $createdStr | Safe}}
|
|
|
|
{{end}}
|
2020-04-06 10:33:34 -06:00
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2020-05-20 06:47:24 -06:00
|
|
|
{{else if and (eq .Type 29) (or (gt .CommitsNum 0) .IsForcePush)}}
|
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-repo-push"}}</span>
|
2020-05-20 06:47:24 -06:00
|
|
|
<span class="text grey">
|
2020-05-23 16:05:20 -06:00
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
2020-05-20 06:47:24 -06:00
|
|
|
{{ if .IsForcePush }}
|
|
|
|
{{$.i18n.Tr "repo.issues.force_push_codes" $.Issue.PullRequest.HeadBranch (ShortSha .OldCommit) ($.Issue.Repo.CommitLink .OldCommit) (ShortSha .NewCommit) ($.Issue.Repo.CommitLink .NewCommit) $createdStr | Safe}}
|
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr (TrN $.i18n.Lang .Commits.Len "repo.issues.push_commit_1" "repo.issues.push_commits_n") .Commits.Len $createdStr | Safe}}
|
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{if not .IsForcePush}}
|
2020-06-02 18:22:26 -06:00
|
|
|
{{template "repo/commits_list_small" dict "comment" . "root" $}}
|
2020-05-20 06:47:24 -06:00
|
|
|
{{end}}
|
2020-08-16 21:07:38 -06:00
|
|
|
{{else if eq .Type 30}}
|
|
|
|
{{if not $.UnitProjectsGlobalDisabled}}
|
|
|
|
<div class="timeline-item event" id="{{.HashTag}}">
|
2020-09-11 14:19:00 -06:00
|
|
|
<span class="badge">{{svg "octicon-project"}}</span>
|
2020-12-03 11:46:11 -07:00
|
|
|
<a href="{{.Poster.HomeLink}}">
|
|
|
|
{{avatar .Poster}}
|
2020-08-16 21:07:38 -06:00
|
|
|
</a>
|
|
|
|
<span class="text grey">
|
|
|
|
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
|
|
|
|
{{if gt .OldProjectID 0}}
|
|
|
|
{{if gt .ProjectID 0}}
|
|
|
|
{{$.i18n.Tr "repo.issues.change_project_at" (.OldProject.Title|Escape) (.Project.Title|Escape) $createdStr | Safe}}
|
|
|
|
{{else}}
|
|
|
|
{{$.i18n.Tr "repo.issues.remove_project_at" (.OldProject.Title|Escape) $createdStr | Safe}}
|
|
|
|
{{end}}
|
|
|
|
{{else if gt .ProjectID 0}}
|
|
|
|
{{$.i18n.Tr "repo.issues.add_project_at" (.Project.Title|Escape) $createdStr | Safe}}
|
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-08-05 22:43:22 -06:00
|
|
|
{{end}}
|
2017-03-16 23:57:43 -06:00
|
|
|
{{end}}
|