diff options
author | 6543 <6543@obermui.de> | 2020-03-07 02:24:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-07 03:24:42 +0200 |
commit | 57c7a7aa721d3422fab3ea297cab5969e72e63f5 (patch) | |
tree | da7203c8e60e80ce7e4fd35a71e5a0e0fec54966 /templates | |
parent | 4a4fc73ee10c80993d02afe7128a0f4824b7d122 (diff) | |
download | gitea-57c7a7aa721d3422fab3ea297cab5969e72e63f5.tar.gz gitea-57c7a7aa721d3422fab3ea297cab5969e72e63f5.zip |
Ensure Update button is enabled even when CI has failed (#10640)
* ignore pull status
* fix css
* fix css
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/view_content/pull.tmpl | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index 0d98f08e69..758733fc44 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -158,26 +158,6 @@ {{$.i18n.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason) }} </div> {{end}} - {{if and .Divergence (gt .Divergence.Behind 0)}} - <div class="ui very compact branch-update grid"> - <div class="row"> - <div class="item text gray eleven wide left floated column"> - <i class="icon icon-octicon">{{svg "octicon-alert" 16}}</i> - {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}} - </div> - {{if .UpdateAllowed}} - <div class="item text five wide right floated column"> - <form action="{{.Link}}/update" method="post"> - {{.CsrfTokenHtml}} - <button class="ui button" data-do="update"> - <span class="item text">{{$.i18n.Tr "repo.pulls.update_branch"}}</span> - </button> - </form> - </div> - {{end}} - </div> - </div> - {{end}} {{if .AllowMerge}} {{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}} {{$approvers := .Issue.PullRequest.GetApprovers}} @@ -307,6 +287,26 @@ </div> {{end}} {{end}} + {{if and .Divergence (gt .Divergence.Behind 0)}} + <div class="ui very compact branch-update grid"> + <div class="row"> + <div class="item text gray eleven wide left floated column"> + <i class="icon icon-octicon">{{svg "octicon-alert" 16}}</i> + {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}} + </div> + {{if .UpdateAllowed}} + <div class="item text five wide right floated column"> + <form action="{{.Link}}/update" method="post"> + {{.CsrfTokenHtml}} + <button class="ui button" data-do="update"> + <span class="item text">{{$.i18n.Tr "repo.pulls.update_branch"}}</span> + </button> + </form> + </div> + {{end}} + </div> + </div> + {{end}} {{else}} {{/* Merge conflict without specific file. Suggest manual merge, only if all reviews and status checks OK. */}} {{if .IsBlockedByApprovals}} |