File tree Expand file tree Collapse file tree 2 files changed +26
-22
lines changed
templates/repo/issue/view_content Expand file tree Collapse file tree 2 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 158
158
{{$.i18n.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason) }}
159
159
</div>
160
160
{{end}}
161
- {{if and .Divergence (gt .Divergence.Behind 0)}}
162
- <div class="ui very compact branch-update grid">
163
- <div class="row">
164
- <div class="item text gray eleven wide left floated column">
165
- <i class="icon icon-octicon">{{svg "octicon-alert" 16}}</i>
166
- {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}}
167
- </div>
168
- {{if .UpdateAllowed}}
169
- <div class="item text five wide right floated column">
170
- <form action="{{.Link}}/update" method="post">
171
- {{.CsrfTokenHtml}}
172
- <button class="ui button" data-do="update">
173
- <span class="item text">{{$.i18n.Tr "repo.pulls.update_branch"}}</span>
174
- </button>
175
- </form>
176
- </div>
177
- {{end}}
178
- </div>
179
- </div>
180
- {{end}}
181
161
{{if .AllowMerge}}
182
162
{{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}}
183
163
{{$approvers := .Issue.PullRequest.GetApprovers}}
307
287
</div>
308
288
{{end}}
309
289
{{end}}
290
+ {{if and .Divergence (gt .Divergence.Behind 0)}}
291
+ <div class="ui very compact branch-update grid">
292
+ <div class="row">
293
+ <div class="item text gray eleven wide left floated column">
294
+ <i class="icon icon-octicon">{{svg "octicon-alert" 16}}</i>
295
+ {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}}
296
+ </div>
297
+ {{if .UpdateAllowed}}
298
+ <div class="item text five wide right floated column">
299
+ <form action="{{.Link}}/update" method="post">
300
+ {{.CsrfTokenHtml}}
301
+ <button class="ui button" data-do="update">
302
+ <span class="item text">{{$.i18n.Tr "repo.pulls.update_branch"}}</span>
303
+ </button>
304
+ </form>
305
+ </div>
306
+ {{end}}
307
+ </div>
308
+ </div>
309
+ {{end}}
310
310
{{else}}
311
311
{{/* Merge conflict without specific file. Suggest manual merge, only if all reviews and status checks OK. */}}
312
312
{{if .IsBlockedByApprovals}}
Original file line number Diff line number Diff line change 659
659
padding-left : 2px ;
660
660
}
661
661
.branch-update.grid {
662
- margin-bottom : -1.5rem ;
663
- margin-top : -.5rem ;
664
662
.row {
665
663
padding-bottom : 0 ;
664
+ .icon {
665
+ margin-top : 1.1rem ;
666
+ }
667
+ .ui.button {
668
+ margin-bottom : 1rem ;
669
+ }
666
670
}
667
671
}
668
672
}
You can’t perform that action at this time.
0 commit comments