debian-mirror-gitlab/app/views/projects/merge_requests/_discussion.html.haml

12 lines
1.2 KiB
Text
Raw Normal View History

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?
2017-08-17 22:00:37 +05:30
= 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-29 09:46:39 +05:30
- if @merge_request.reopenable?
2017-08-17 22:00:37 +05:30
= 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-close js-note-target-reopen", title: "Reopen merge request", data: { original_text: "Reopen merge request", alternative_text: "Comment & reopen merge request"}
2017-09-10 17:25:29 +05:30
%comment-and-resolve-btn{ "inline-template" => true }
%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)}" } }
{{ buttonText }}
2015-04-26 12:48:37 +05:30
2017-09-10 17:25:29 +05:30
#notes= render "shared/notes/notes_with_form", :autocomplete => true