2023-03-30 22:30:49 +05:30
|
|
|
{{if and (gt $.Issue.PullRequest.CommitsBehind 0) (not $.Issue.IsClosed) (not $.Issue.PullRequest.IsChecking) (not $.IsPullFilesConflicted) (not $.IsPullRequestBroken)}}
|
2023-06-29 17:54:22 +05:30
|
|
|
<div class="divider"></div>
|
2023-02-03 11:54:45 +05:30
|
|
|
<div class="item item-section">
|
2023-06-14 22:10:15 +05:30
|
|
|
<div class="item-section-left flex-text-inline">
|
|
|
|
{{svg "octicon-alert"}}
|
2023-02-03 11:54:45 +05:30
|
|
|
{{$.locale.Tr "repo.pulls.outdated_with_base_branch"}}
|
|
|
|
</div>
|
|
|
|
<div class="item-section-right">
|
2023-03-30 22:30:49 +05:30
|
|
|
{{if and $.UpdateAllowed $.UpdateByRebaseAllowed}}
|
2023-02-13 23:29:59 +05:30
|
|
|
<div class="gt-dib">
|
2023-02-03 11:54:45 +05:30
|
|
|
<div class="ui buttons update-button">
|
2023-03-30 22:30:49 +05:30
|
|
|
<button class="ui button" data-do="{{$.Link}}/update" data-redirect="{{$.Link}}">
|
2023-02-03 11:54:45 +05:30
|
|
|
<span class="button-text">
|
|
|
|
{{$.locale.Tr "repo.pulls.update_branch"}}
|
|
|
|
</span>
|
|
|
|
</button>
|
2023-06-14 22:10:15 +05:30
|
|
|
<div class="ui dropdown icon button">
|
|
|
|
{{svg "octicon-triangle-down"}}
|
2023-02-03 11:54:45 +05:30
|
|
|
<div class="menu">
|
2023-03-30 22:30:49 +05:30
|
|
|
<a class="item active selected" data-do="{{$.Link}}/update">{{$.locale.Tr "repo.pulls.update_branch"}}</a>
|
|
|
|
<a class="item" data-do="{{$.Link}}/update?style=rebase">{{$.locale.Tr "repo.pulls.update_branch_rebase"}}</a>
|
2023-02-03 11:54:45 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2023-03-30 22:30:49 +05:30
|
|
|
{{if and $.UpdateAllowed (not $.UpdateByRebaseAllowed)}}
|
|
|
|
<form action="{{$.Link}}/update" method="post" class="ui update-branch-form">
|
|
|
|
{{$.CsrfTokenHtml}}
|
|
|
|
<button class="ui compact button">
|
2023-02-03 11:54:45 +05:30
|
|
|
<span class="ui text">{{$.locale.Tr "repo.pulls.update_branch"}}</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|