2015-04-26 12:48:37 +05:30
|
|
|
- content_for :note_actions do
|
2015-09-11 14:41:01 +05:30
|
|
|
- if can?(current_user, :update_merge_request, @merge_request)
|
2015-04-26 12:48:37 +05:30
|
|
|
- if @merge_request.open?
|
2016-01-14 18:37:52 +05:30
|
|
|
= link_to 'Close', merge_request_path(@merge_request, merge_request: {state_event: :close }), method: :put, class: "btn btn-nr btn-comment btn-grouped btn-close close-mr-link js-note-target-close", title: "Close merge request"
|
2015-04-26 12:48:37 +05:30
|
|
|
- if @merge_request.closed?
|
2016-01-14 18:37:52 +05:30
|
|
|
= link_to 'Reopen', merge_request_path(@merge_request, merge_request: {state_event: :reopen }), method: :put, class: "btn btn-nr btn-comment btn-grouped btn-reopen reopen-mr-link js-note-target-reopen", title: "Reopen merge request"
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
#notes= render "projects/notes/notes_with_form"
|