_discussion.html.haml 655 Bytes
Newer Older
1
- content_for :note_actions do
2
  - if can?(current_user, :update_merge_request, @merge_request)
3
    - if @merge_request.open?
Andriy Dyadyura's avatar
Andriy Dyadyura committed
4
      = link_to 'Close', merge_request_path(@merge_request, merge_request: {state_event: :close }), method: :put, class: "btn btn-nr btn-grouped btn-close close-mr-link js-note-target-close", title: "Close merge request"
5
    - if @merge_request.closed?
Andriy Dyadyura's avatar
Andriy Dyadyura committed
6
      = link_to 'Reopen', merge_request_path(@merge_request, merge_request: {state_event: :reopen }), method: :put, class: "btn btn-nr btn-grouped btn-reopen reopen-mr-link js-note-target-reopen", title: "Reopen merge request"
7

8
#notes= render "projects/notes/notes_with_form"