|
13 | 13 | {{avatar .User}} |
14 | 14 | </a> |
15 | 15 | {{end}} |
16 | | - <span class="text grey"> |
| 16 | + <span> |
17 | 17 | {{if .User}} |
18 | 18 | <a href="{{.User.HomeLink}}">{{.User.GetDisplayName}}</a> |
19 | 19 | {{else if .Team}} |
|
39 | 39 | </span> |
40 | 40 | {{end}} |
41 | 41 | {{if (and $.Permission.IsAdmin (or (eq .Review.Type 1) (eq .Review.Type 3)) (not $.Issue.IsClosed))}} |
42 | | - <a href="#" class="ui grey poping up icon dismiss-review-btn" data-review-id="dismiss-review-{{.Review.ID}}" data-content="{{$.i18n.Tr "repo.issues.dismiss_review"}}"> |
| 42 | + <a href="#" class="ui muted poping up icon dismiss-review-btn" data-review-id="dismiss-review-{{.Review.ID}}" data-content="{{$.i18n.Tr "repo.issues.dismiss_review"}}"> |
43 | 43 | {{svg "octicon-x" 16}} |
44 | 44 | </a> |
45 | 45 | <div class="ui small modal" id="dismiss-review-modal"> |
|
172 | 172 | {{$.i18n.Tr "repo.pulls.data_broken"}} |
173 | 173 | </div> |
174 | 174 | {{else if .IsPullWorkInProgress}} |
175 | | - <div class="item"> |
176 | | - <i class="icon icon-octicon">{{svg "octicon-x"}}</i> |
177 | | - {{$.i18n.Tr "repo.pulls.cannot_merge_work_in_progress" (.WorkInProgressPrefix|Escape) | Str2html}} |
| 175 | + <div class="item toggle-wip df ac sb" data-title="{{.Issue.Title}}" data-wip-prefix="{{(.WorkInProgressPrefix|Escape)}}" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/title"> |
| 176 | + <div> |
| 177 | + <i class="icon icon-octicon">{{svg "octicon-x"}}</i> |
| 178 | + {{$.i18n.Tr "repo.pulls.cannot_merge_work_in_progress" }} |
| 179 | + </div> |
| 180 | + <div> |
| 181 | + {{if or .HasIssuesOrPullsWritePermission .IsIssuePoster}} |
| 182 | + <button class="ui compact button"> |
| 183 | + {{$.i18n.Tr "repo.pulls.remove_prefix" (.WorkInProgressPrefix|Escape) | Safe}} |
| 184 | + </button> |
| 185 | + {{end}} |
| 186 | + </div> |
178 | 187 | </div> |
179 | 188 | {{else if .Issue.PullRequest.IsChecking}} |
180 | 189 | <div class="item"> |
181 | 190 | <i class="icon icon-octicon">{{svg "octicon-sync"}}</i> |
182 | 191 | {{$.i18n.Tr "repo.pulls.is_checking"}} |
183 | 192 | </div> |
184 | 193 | {{else if .Issue.PullRequest.IsEmpty}} |
185 | | - <div class="item text grey"> |
| 194 | + <div class="item"> |
186 | 195 | <i class="icon icon-octicon">{{svg "octicon-alert" 16}}</i> |
187 | 196 | {{$.i18n.Tr "repo.pulls.is_empty"}} |
188 | 197 | </div> |
|
443 | 452 | {{svg "octicon-x"}} |
444 | 453 | {{$.i18n.Tr "repo.pulls.no_merge_desc"}} |
445 | 454 | </div> |
446 | | - <div class="item text grey"> |
| 455 | + <div class="item"> |
447 | 456 | {{svg "octicon-info"}} |
448 | 457 | {{$.i18n.Tr "repo.pulls.no_merge_helper"}} |
449 | 458 | </div> |
450 | 459 | {{end}} |
451 | 460 | {{else}} |
452 | 461 | <div class="ui divider"></div> |
453 | | - <div class="item text grey"> |
| 462 | + <div class="item"> |
454 | 463 | {{svg "octicon-info"}} |
455 | 464 | {{$.i18n.Tr "repo.pulls.no_merge_access"}} |
456 | 465 | </div> |
|
503 | 512 | {{svg "octicon-x"}} |
504 | 513 | {{$.i18n.Tr "repo.pulls.cannot_auto_merge_desc"}} |
505 | 514 | </div> |
506 | | - <div class="item text grey"> |
| 515 | + <div class="item"> |
507 | 516 | {{svg "octicon-info"}} |
508 | 517 | {{$.i18n.Tr "repo.pulls.cannot_auto_merge_helper"}} |
509 | 518 | </div> |
510 | 519 | {{end}} |
511 | 520 | {{end}} |
512 | 521 |
|
513 | 522 | {{if and (gt .Issue.PullRequest.CommitsBehind 0) (not .Issue.IsClosed) (not .Issue.PullRequest.IsChecking) (not .IsPullFilesConflicted) (not .IsPullRequestBroken) (not $canAutoMerge)}} |
514 | | - <div class="item text grey"> |
515 | | - <i class="icon icon-octicon">{{svg "octicon-alert"}}</i> |
516 | | - {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}} |
517 | | - {{if .UpdateAllowed}} |
518 | | - <form action="{{.Link}}/update" method="post" class="ui floating right"> |
519 | | - {{.CsrfTokenHtml}} |
520 | | - <button class="ui compact button" data-do="update"> |
521 | | - <span class="ui text">{{$.i18n.Tr "repo.pulls.update_branch"}}</span> |
522 | | - </button> |
523 | | - </form> |
524 | | - {{end}} |
| 523 | + <div class="item df ac sb"> |
| 524 | + <div> |
| 525 | + <i class="icon icon-octicon">{{svg "octicon-alert"}}</i> |
| 526 | + {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}} |
| 527 | + </div> |
| 528 | + <div> |
| 529 | + {{if .UpdateAllowed}} |
| 530 | + <form action="{{.Link}}/update" method="post"> |
| 531 | + {{.CsrfTokenHtml}} |
| 532 | + <button class="ui compact button" data-do="update"> |
| 533 | + <span class="ui text">{{$.i18n.Tr "repo.pulls.update_branch"}}</span> |
| 534 | + </button> |
| 535 | + </form> |
| 536 | + {{end}} |
| 537 | + </div> |
525 | 538 | </div> |
526 | 539 | {{end}} |
527 | 540 |
|
|
0 commit comments