|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
{{if or .PullReviewers .OriginalReviews}} |
|
|
|
|
<div class="comment box"> |
|
|
|
|
<div class="comment box timeline-item gt-pt-3 gt-pb-0"> |
|
|
|
|
<div class="content"> |
|
|
|
|
<div class="ui segment"> |
|
|
|
|
<h4>{{$.locale.Tr "repo.issues.review.reviewers"}}</h4> |
|
|
|
@ -8,9 +8,12 @@ |
|
|
|
|
<div class="ui divider"></div> |
|
|
|
|
<div class="review-item"> |
|
|
|
|
<div class="review-item-left"> |
|
|
|
|
<span class="gt-mr-3 text {{.Review.HTMLTypeColorName}}"> |
|
|
|
|
{{svg (printf "octicon-%s" .Review.Type.Icon)}} |
|
|
|
|
</span> |
|
|
|
|
{{if .User}} |
|
|
|
|
<a href="{{.User.HomeLink}}"> |
|
|
|
|
{{avatar $.Context .User}} |
|
|
|
|
{{avatar $.Context .User 20}} |
|
|
|
|
</a> |
|
|
|
|
{{end}} |
|
|
|
|
<span class="gt-ml-2"> |
|
|
|
@ -34,13 +37,13 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="review-item-right"> |
|
|
|
|
{{if .Review.Stale}} |
|
|
|
|
<span class="ui type-icon text grey" data-tooltip-content="{{$.locale.Tr "repo.issues.is_stale"}}"> |
|
|
|
|
<span class="ui text grey" data-tooltip-content="{{$.locale.Tr "repo.issues.is_stale"}}"> |
|
|
|
|
{{svg "octicon-hourglass" 16 "icon"}} |
|
|
|
|
</span> |
|
|
|
|
{{end}} |
|
|
|
|
{{if (and $.Permission.IsAdmin (or (eq .Review.Type 1) (eq .Review.Type 3)) (not $.Issue.IsClosed))}} |
|
|
|
|
<a href="#" class="ui muted icon dismiss-review-btn" data-review-id="dismiss-review-{{.Review.ID}}" data-tooltip-content="{{$.locale.Tr "repo.issues.dismiss_review"}}"> |
|
|
|
|
{{svg "octicon-x" 16}} |
|
|
|
|
<a href="#" class="ui muted icon gt-df gt-ac dismiss-review-btn" data-review-id="dismiss-review-{{.Review.ID}}" data-tooltip-content="{{$.locale.Tr "repo.issues.dismiss_review"}}"> |
|
|
|
|
{{svg "octicon-x" 20}} |
|
|
|
|
</a> |
|
|
|
|
<div class="ui small modal" id="dismiss-review-modal"> |
|
|
|
|
<div class="header"> |
|
|
|
@ -65,19 +68,9 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{{end}} |
|
|
|
|
<span class="type-icon text {{if eq .Review.Type 1}}green |
|
|
|
|
{{- else if eq .Review.Type 2}}grey |
|
|
|
|
{{- else if eq .Review.Type 3}}red |
|
|
|
|
{{- else if eq .Review.Type 4}}yellow |
|
|
|
|
{{else}}grey{{end}}"> |
|
|
|
|
|
|
|
|
|
{{if .CanChange}} |
|
|
|
|
<a href="#" class="ui icon re-request-review {{if .Checked}}checked{{end}}" data-issue-id="{{$.Issue.ID}}" data-tooltip-content="{{if .Checked}} {{$.locale.Tr "repo.issues.remove_request_review"}} {{else}} {{$.locale.Tr "repo.issues.re_request_review"}} {{end}}" data-id="{{.ItemID}}" data-update-url="{{$.RepoLink}}/issues/request_review"> |
|
|
|
|
{{if .Checked}} {{svg "octicon-trash"}} {{else}} {{svg "octicon-sync"}} {{end}} |
|
|
|
|
</a> |
|
|
|
|
{{end}} |
|
|
|
|
{{svg (printf "octicon-%s" .Review.Type.Icon)}} |
|
|
|
|
</span> |
|
|
|
|
{{if .CanChange}} |
|
|
|
|
<a href="#" class="ui icon muted gt-df gt-ac re-request-review{{if .Checked}} checked{{end}}" data-issue-id="{{$.Issue.ID}}" data-tooltip-content="{{if .Checked}}{{$.locale.Tr "repo.issues.remove_request_review"}}{{else}}{{$.locale.Tr "repo.issues.re_request_review"}}{{end}}" data-id="{{.ItemID}}" data-update-url="{{$.RepoLink}}/issues/request_review">{{if .Checked}}{{svg "octicon-trash"}}{{else}}{{svg "octicon-sync"}}{{end}}</a> |
|
|
|
|
{{end}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{{end}} |
|
|
|
@ -86,22 +79,16 @@ |
|
|
|
|
<div class="ui divider"></div> |
|
|
|
|
<div class="review-item"> |
|
|
|
|
<div class="review-item-left"> |
|
|
|
|
<span class="gt-mr-3 text {{.Review.HTMLTypeColorName}}"> |
|
|
|
|
{{svg (printf "octicon-%s" .Type.Icon)}} |
|
|
|
|
</span> |
|
|
|
|
<a href="{{$.Repository.OriginalURL}}" data-tooltip-content="{{$.locale.Tr "repo.migrated_from_fake" ($.Repository.GetOriginalURLHostname|Escape) | Safe}}"> |
|
|
|
|
<span class="text black "> |
|
|
|
|
<span class="text black"> |
|
|
|
|
{{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}} |
|
|
|
|
{{.OriginalAuthor}} |
|
|
|
|
</span> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<div class="review-item-right"> |
|
|
|
|
<span class="type-icon text {{if eq .Type 1}}green |
|
|
|
|
{{- else if eq .Type 2}}grey |
|
|
|
|
{{- else if eq .Type 3}}red |
|
|
|
|
{{- else if eq .Type 4}}yellow |
|
|
|
|
{{else}}grey{{end}}"> |
|
|
|
|
{{svg (printf "octicon-%s" .Type.Icon)}} |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{{end}} |
|
|
|
|
</div> |
|
|
|
@ -204,7 +191,7 @@ |
|
|
|
|
</div> |
|
|
|
|
{{else if .Issue.PullRequest.IsAncestor}} |
|
|
|
|
<div class="item"> |
|
|
|
|
<i class="icon icon-octicon">{{svg "octicon-alert" 16}}</i> |
|
|
|
|
<i class="icon icon-octicon">{{svg "octicon-alert"}}</i> |
|
|
|
|
{{$.locale.Tr "repo.pulls.is_ancestor"}} |
|
|
|
|
</div> |
|
|
|
|
{{else if or .Issue.PullRequest.CanAutoMerge .Issue.PullRequest.IsEmpty}} |
|
|
|
@ -230,7 +217,7 @@ |
|
|
|
|
</div> |
|
|
|
|
{{else if .IsBlockedByChangedProtectedFiles}} |
|
|
|
|
<div class="item"> |
|
|
|
|
<i class="icon icon-octicon">{{svg "octicon-x" 16}}</i> |
|
|
|
|
<i class="icon icon-octicon">{{svg "octicon-x"}}</i> |
|
|
|
|
{{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}} |
|
|
|
|
<ul> |
|
|
|
|
{{range .ChangedProtectedFiles}} |
|
|
|
@ -294,7 +281,7 @@ |
|
|
|
|
<div class="ui divider"></div> |
|
|
|
|
|
|
|
|
|
<div class="item"> |
|
|
|
|
<i class="icon icon-octicon">{{svg "octicon-alert" 16}}</i> |
|
|
|
|
<i class="icon icon-octicon">{{svg "octicon-alert"}}</i> |
|
|
|
|
{{$.locale.Tr "repo.pulls.is_empty"}} |
|
|
|
|
</div> |
|
|
|
|
{{end}} |
|
|
|
@ -430,7 +417,7 @@ |
|
|
|
|
</div> |
|
|
|
|
{{else if .IsBlockedByChangedProtectedFiles}} |
|
|
|
|
<div class="item text red"> |
|
|
|
|
<i class="icon icon-octicon">{{svg "octicon-x" 16}}</i> |
|
|
|
|
<i class="icon icon-octicon">{{svg "octicon-x"}}</i> |
|
|
|
|
{{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}} |
|
|
|
|
<ul> |
|
|
|
|
{{range .ChangedProtectedFiles}} |
|
|
|
|