-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Add links to toggle WIP status #14677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 18 commits
b66afeb
caf2854
8de91cd
1750f11
e030184
92c19a6
92af13b
ab6c65a
66f1777
9fabaa5
fc4ed2e
b151b82
c9da4ea
d749964
d9c4ef7
0791850
75d7b0b
80824a0
2d25928
82b1542
22cc66a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ | |
| {{avatar .User}} | ||
| </a> | ||
| {{end}} | ||
| <span class="text grey"> | ||
| <span> | ||
| {{if .User}} | ||
| <a href="{{.User.HomeLink}}">{{.User.GetDisplayName}}</a> | ||
| {{else if .Team}} | ||
|
|
@@ -34,12 +34,12 @@ | |
| </div> | ||
| <div class="review-item-right"> | ||
| {{if .Review.Stale}} | ||
| <span class="ui poping up type-icon text grey" data-content="{{$.i18n.Tr "repo.issues.is_stale"}}"> | ||
| <span class="ui poping up type-icon" data-content="{{$.i18n.Tr "repo.issues.is_stale"}}"> | ||
| <i class="octicon icon fa-hourglass-end"></i> | ||
| </span> | ||
| {{end}} | ||
| {{if (and $.Permission.IsAdmin (or (eq .Review.Type 1) (eq .Review.Type 3)) (not $.Issue.IsClosed))}} | ||
| <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"}}"> | ||
| <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"}}"> | ||
| {{svg "octicon-x" 16}} | ||
| </a> | ||
| <div class="ui small modal" id="dismiss-review-modal"> | ||
|
|
@@ -172,17 +172,26 @@ | |
| {{$.i18n.Tr "repo.pulls.data_broken"}} | ||
| </div> | ||
| {{else if .IsPullWorkInProgress}} | ||
| <div class="item"> | ||
| <i class="icon icon-octicon">{{svg "octicon-x"}}</i> | ||
| {{$.i18n.Tr "repo.pulls.cannot_merge_work_in_progress" (.WorkInProgressPrefix|Escape) | Str2html}} | ||
| <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"> | ||
| <div> | ||
| <i class="icon icon-octicon">{{svg "octicon-x"}}</i> | ||
| {{$.i18n.Tr "repo.pulls.cannot_merge_work_in_progress" }} | ||
| </div> | ||
| <div> | ||
| {{if or .HasIssuesOrPullsWritePermission .IsIssuePoster}} | ||
| <button class="ui compact button"> | ||
| {{$.i18n.Tr "repo.pulls.remove_prefix" (.WorkInProgressPrefix|Escape) | Safe}} | ||
| </button> | ||
| {{end}} | ||
| </div> | ||
| </div> | ||
| {{else if .Issue.PullRequest.IsChecking}} | ||
| <div class="item"> | ||
| <i class="icon icon-octicon">{{svg "octicon-sync"}}</i> | ||
| {{$.i18n.Tr "repo.pulls.is_checking"}} | ||
| </div> | ||
| {{else if .Issue.PullRequest.IsEmpty}} | ||
| <div class="item text grey"> | ||
| <div class="item"> | ||
| <i class="icon icon-octicon">{{svg "octicon-alert" 16}}</i> | ||
| {{$.i18n.Tr "repo.pulls.is_empty"}} | ||
| </div> | ||
|
|
@@ -443,14 +452,14 @@ | |
| {{svg "octicon-x"}} | ||
| {{$.i18n.Tr "repo.pulls.no_merge_desc"}} | ||
| </div> | ||
| <div class="item text grey"> | ||
| <div class="item"> | ||
| {{svg "octicon-info"}} | ||
| {{$.i18n.Tr "repo.pulls.no_merge_helper"}} | ||
| </div> | ||
| {{end}} | ||
| {{else}} | ||
| <div class="ui divider"></div> | ||
| <div class="item text grey"> | ||
| <div class="item"> | ||
| {{svg "octicon-info"}} | ||
| {{$.i18n.Tr "repo.pulls.no_merge_access"}} | ||
| </div> | ||
|
|
@@ -503,25 +512,29 @@ | |
| {{svg "octicon-x"}} | ||
| {{$.i18n.Tr "repo.pulls.cannot_auto_merge_desc"}} | ||
| </div> | ||
| <div class="item text grey"> | ||
| <div class="item"> | ||
| {{svg "octicon-info"}} | ||
| {{$.i18n.Tr "repo.pulls.cannot_auto_merge_helper"}} | ||
| </div> | ||
| {{end}} | ||
| {{end}} | ||
|
|
||
| {{if and (gt .Issue.PullRequest.CommitsBehind 0) (not .Issue.IsClosed) (not .Issue.PullRequest.IsChecking) (not .IsPullFilesConflicted) (not .IsPullRequestBroken) (not $canAutoMerge)}} | ||
| <div class="item text grey"> | ||
| <i class="icon icon-octicon">{{svg "octicon-alert"}}</i> | ||
| {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}} | ||
| {{if .UpdateAllowed}} | ||
| <form action="{{.Link}}/update" method="post" class="ui floating right"> | ||
| {{.CsrfTokenHtml}} | ||
| <button class="ui compact button" data-do="update"> | ||
| <span class="ui text">{{$.i18n.Tr "repo.pulls.update_branch"}}</span> | ||
| </button> | ||
| </form> | ||
| {{end}} | ||
| <div class="item df ac sb"> | ||
| <div> | ||
| <i class="icon icon-octicon">{{svg "octicon-alert"}}</i> | ||
| {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}} | ||
| </div> | ||
| <div> | ||
| {{if .UpdateAllowed}} | ||
| <form action="{{.Link}}/update" method="post"> | ||
| {{.CsrfTokenHtml}} | ||
| <button class="ui compact button" data-do="update"> | ||
| <span class="ui text">{{$.i18n.Tr "repo.pulls.update_branch"}}</span> | ||
| </button> | ||
| </form> | ||
| {{end}} | ||
| </div> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't provide a screenshot for this right now but it essentially styles the "Update Branch" button the same as in the screenshot for WIP removal. Previously, the button was misaligned because of
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| </div> | ||
| {{end}} | ||
|
|
||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.