1 - unless @allowed_to_merge
3 %strong You don't have permission to merge this MR
6 - if @show_merge_controls
7 .automerge_widget.can_be_merged.hide
8 .bs-callout.bs-callout-success.clearfix
9 = form_for [:automerge, @project, @merge_request], remote: true, method: :get do |f|
11 You can accept this request automatically.
13 If you still want to do it manually -
15 = link_to "click here", "#modal_merge_info", class: "how_to_merge_link vlink", title: "How To Merge", "data-toggle" => "modal"
19 If you want to modify merge commit message -
21 = link_to "click here", "#", class: "modify-merge-commit-link js-toggle-visibility-link", title: "Modify merge commit message"
23 .js-toggle-visibility-container.hide
25 = label_tag :merge_commit_message, "Commit message", class: 'control-label'
27 = text_area_tag :merge_commit_message, @merge_request.merge_commit_message, class: "form-control js-gfm-input", rows: 14, required: true
29 The recommended maximum line length is 52 characters for the first line and 72 characters for all following lines.
33 = f.submit "Accept Merge Request", class: "btn btn-create accept_merge_request"
34 - unless @merge_request.disallow_source_branch_removal?
35 .remove_branch_holder.pull-left
36 = label_tag :should_remove_source_branch, class: "checkbox" do
37 = check_box_tag :should_remove_source_branch
41 .automerge_widget.no_satellite.hide
42 .bs-callout.bs-callout-danger
44 %strong This repository does not have satellite. Ask an administrator to fix this issue
46 .automerge_widget.cannot_be_merged.hide
47 .bs-callout.bs-callout-disabled
49 This request can't be merged with GitLab.
51 You should do it manually with
53 = link_to "command line", "#modal_merge_info", class: "how_to_merge_link", title: "How To Merge", "data-toggle" => "modal"
55 .automerge_widget.unchecked
56 .bs-callout.bs-callout-warning
58 %i.icon-refresh.icon-spin
59 Checking for ability to automatically mergeā¦
61 .automerge_widget.already_cannot_be_merged.hide
62 .bs-callout.bs-callout-info
63 %strong This merge request already can not be merged. Try to reload page.
65 .merge-in-progress.hide
66 .bs-callout.bs-callout-success
67 %i.icon-refresh.icon-spin
69 Merge is in progress. Please wait. Page will be automatically reloaded.