2014-12-25 07:32:49 -05:00
|
|
|
- content_for :note_actions do
|
2015-06-26 09:55:56 -04:00
|
|
|
- if can?(current_user, :update_merge_request, @merge_request)
|
2016-01-12 13:52:36 -05:00
|
|
|
- if @merge_request.open?
|
2016-06-18 16:40:59 -04:00
|
|
|
= link_to 'Close merge request', merge_request_path(@merge_request, merge_request: {state_event: :close }), method: :put, class: "btn btn-nr btn-comment btn-close close-mr-link js-note-target-close", title: "Close merge request", data: {original_text: "Close merge request", alternative_text: "Comment & close merge request"}
|
2016-09-13 08:40:00 -04:00
|
|
|
- if @merge_request.reopenable?
|
2016-06-18 16:40:59 -04:00
|
|
|
= link_to 'Reopen merge request', merge_request_path(@merge_request, merge_request: {state_event: :reopen }), method: :put, class: "btn btn-nr btn-comment btn-reopen reopen-mr-link js-note-target-reopen", title: "Reopen merge request", data: {original_text: "Reopen merge request", alternative_text: "Comment & reopen merge request"}
|
2016-07-29 08:31:32 -04:00
|
|
|
%comment-and-resolve-btn{ "inline-template" => true, ":discussion-id" => "" }
|
2016-08-31 11:45:41 -04:00
|
|
|
%button.btn.btn-nr.btn-default.append-right-10.js-comment-resolve-button{ "v-if" => "showButton", type: "submit", data: { project_path: "#{project_path(@merge_request.project)}" } }
|
2016-07-26 12:45:48 -04:00
|
|
|
{{ buttonText }}
|
2014-12-25 07:32:49 -05:00
|
|
|
|
2016-01-12 13:52:36 -05:00
|
|
|
#notes= render "projects/notes/notes_with_form"
|