BigW Consortium Gitlab

_discussion.html.haml 879 Bytes
Newer Older
1
- content_for :note_actions do
2
  - if can?(current_user, :update_merge_request, @merge_request)
Jacob Schatz committed
3
    - if @merge_request.open?
4
      = 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"}
Jacob Schatz committed
5
    - if @merge_request.closed?
6
      = 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"}
7

Jacob Schatz committed
8
#notes= render "projects/notes/notes_with_form"