31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
%h3.page_title
|
|
= "Merge Request ##{@merge_request.id}:"
|
|
|
|
%span.label_branch= @merge_request.source_branch
|
|
→
|
|
%span.label_branch= @merge_request.target_branch
|
|
|
|
%span.right
|
|
- if @merge_request.merged?
|
|
%span.btn.small.disabled.grouped
|
|
%strong
|
|
%i.icon-ok
|
|
= "MERGED"
|
|
- if can?(current_user, :modify_merge_request, @merge_request)
|
|
- if @merge_request.open?
|
|
= link_to raw_project_merge_request_path(@project, @merge_request), class: "btn grouped" do
|
|
%i.icon-download-alt
|
|
Get Patch
|
|
|
|
= 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"
|
|
|
|
= link_to edit_project_merge_request_path(@project, @merge_request), class: "btn grouped" do
|
|
%i.icon-edit
|
|
Edit
|
|
|
|
.right
|
|
.span3#votes= render 'votes/votes_block', votable: @merge_request
|
|
|
|
.back_link
|
|
= link_to project_merge_requests_path(@project) do
|
|
← To merge requests
|