OSDN Git Service

Tests for accept MR with custom message
[wvm/gitlab.git] / app / views / projects / merge_requests / show / _mr_accept.html.haml
1 - unless @allowed_to_merge
2   .bs-callout
3     %strong You don't have permission to merge this MR
4
5
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|
10         %h4
11           You can accept this request automatically.
12         %p
13           If you still want to do it manually -
14           %strong
15             = link_to "click here", "#modal_merge_info", class: "how_to_merge_link vlink", title: "How To Merge", "data-toggle" => "modal"
16           for instructions.
17
18           %br
19           If you want to modify merge commit message -
20           %strong
21             = link_to "click here", "#", class: "modify-merge-commit-link js-toggle-visibility-link", title: "Modify merge commit message"
22
23         .js-toggle-visibility-container.hide
24           .form-group
25             = label_tag :merge_commit_message, "Commit message", class: 'control-label'
26             .col-sm-10
27               = text_area_tag :merge_commit_message, @merge_request.merge_commit_message, class: "form-control js-gfm-input", rows: 14, required: true
28               %p.hint
29                 The recommended maximum line length is 52 characters for the first line and 72 characters for all following lines.
30
31         .accept-group
32           .pull-left
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
38                 Remove source-branch
39
40
41   .automerge_widget.no_satellite.hide
42     .bs-callout.bs-callout-danger
43       %span
44         %strong This repository does not have satellite. Ask an administrator to fix this issue
45
46   .automerge_widget.cannot_be_merged.hide
47     .bs-callout.bs-callout-disabled
48       %h4
49         This request can't be merged with GitLab.
50       %span
51         You should do it manually with
52         %strong
53           = link_to "command line", "#modal_merge_info", class: "how_to_merge_link", title: "How To Merge", "data-toggle" => "modal"
54
55   .automerge_widget.unchecked
56     .bs-callout.bs-callout-warning
57       %strong
58         %i.icon-refresh.icon-spin
59         Checking for ability to automatically mergeā€¦
60
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.
64
65   .merge-in-progress.hide
66     .bs-callout.bs-callout-success
67       %i.icon-refresh.icon-spin
68        
69       Merge is in progress. Please wait. Page will be automatically reloaded.