2012-06-30 23:35:24 +02:00
|
|
|
%h3.page_title
|
2012-06-29 20:55:22 +02:00
|
|
|
= "Merge Request ##{@merge_request.id}:"
|
|
|
|
|
2012-08-29 20:23:43 +02:00
|
|
|
%span.label_branch= @merge_request.source_branch
|
2012-06-29 20:55:22 +02:00
|
|
|
→
|
2012-08-29 20:23:43 +02:00
|
|
|
%span.label_branch= @merge_request.target_branch
|
2012-06-29 20:55:22 +02:00
|
|
|
|
|
|
|
%span.right
|
|
|
|
- if @merge_request.merged?
|
2012-07-05 08:35:23 +02:00
|
|
|
%span.btn.small.disabled.grouped
|
2012-06-29 20:55:22 +02:00
|
|
|
%strong
|
|
|
|
%i.icon-ok
|
|
|
|
= "MERGED"
|
|
|
|
- if can?(current_user, :modify_merge_request, @merge_request)
|
|
|
|
- if @merge_request.open?
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to raw_project_merge_request_path(@project, @merge_request), class: "btn grouped" do
|
2012-07-05 00:26:23 +02:00
|
|
|
%i.icon-download-alt
|
|
|
|
Get Patch
|
|
|
|
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to 'Close', project_merge_request_path(@project, @merge_request, merge_request: {closed: true }, status_only: true), method: :put, class: "btn grouped danger", title: "Close merge request"
|
2012-07-05 00:26:23 +02:00
|
|
|
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to edit_project_merge_request_path(@project, @merge_request), class: "btn grouped" do
|
2012-06-29 20:55:22 +02:00
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
|
|
|
|
2012-09-08 16:44:56 +02:00
|
|
|
.right
|
2012-09-10 15:27:14 +02:00
|
|
|
.span3#votes= render 'votes/votes_block', votable: @merge_request
|
2012-06-29 20:55:22 +02:00
|
|
|
|
|
|
|
.back_link
|
|
|
|
= link_to project_merge_requests_path(@project) do
|
|
|
|
← To merge requests
|