code.gitea.io/gitea@v1.22.3/templates/repo/issue/view_content/update_branch_by_merge.tmpl (about) 1 {{if and (gt $.Issue.PullRequest.CommitsBehind 0) (not $.Issue.IsClosed) (not $.Issue.PullRequest.IsChecking) (not $.IsPullFilesConflicted) (not $.IsPullRequestBroken)}} 2 <div class="divider"></div> 3 <div class="item item-section"> 4 <div class="item-section-left flex-text-inline"> 5 {{svg "octicon-alert"}} 6 {{ctx.Locale.Tr "repo.pulls.outdated_with_base_branch"}} 7 </div> 8 <div class="item-section-right"> 9 {{if and $.UpdateAllowed $.UpdateByRebaseAllowed}} 10 <div class="tw-inline-block"> 11 <div class="ui buttons update-button"> 12 <button class="ui button" data-do="{{$.Link}}/update" data-redirect="{{$.Link}}"> 13 <span class="button-text"> 14 {{ctx.Locale.Tr "repo.pulls.update_branch"}} 15 </span> 16 </button> 17 <div class="ui dropdown icon button"> 18 {{svg "octicon-triangle-down"}} 19 <div class="menu"> 20 <a class="item active selected" data-do="{{$.Link}}/update">{{ctx.Locale.Tr "repo.pulls.update_branch"}}</a> 21 <a class="item" data-do="{{$.Link}}/update?style=rebase">{{ctx.Locale.Tr "repo.pulls.update_branch_rebase"}}</a> 22 </div> 23 </div> 24 </div> 25 </div> 26 {{end}} 27 {{if and $.UpdateAllowed (not $.UpdateByRebaseAllowed)}} 28 <form action="{{$.Link}}/update" method="post" class="ui update-branch-form"> 29 {{$.CsrfTokenHtml}} 30 <button class="ui compact button"> 31 <span class="ui text">{{ctx.Locale.Tr "repo.pulls.update_branch"}}</span> 32 </button> 33 </form> 34 {{end}} 35 </div> 36 </div> 37 {{end}}