2012-06-30 17:35:24 -04:00
|
|
|
%h3.page_title
|
2012-06-29 14:55:22 -04:00
|
|
|
= "Merge Request ##{@merge_request.id}:"
|
|
|
|
|
2012-08-29 14:23:43 -04:00
|
|
|
%span.label_branch= @merge_request.source_branch
|
2012-06-29 14:55:22 -04:00
|
|
|
→
|
2012-08-29 14:23:43 -04:00
|
|
|
%span.label_branch= @merge_request.target_branch
|
2012-06-29 14:55:22 -04:00
|
|
|
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.pull-right
|
2012-06-29 14:55:22 -04:00
|
|
|
- if can?(current_user, :modify_merge_request, @merge_request)
|
2013-02-18 03:40:56 -05:00
|
|
|
- if @merge_request.opened?
|
2012-11-24 18:36:19 -05:00
|
|
|
.left.btn-group
|
|
|
|
%a.btn.grouped.dropdown-toggle{ data: {toggle: :dropdown} }
|
|
|
|
%i.icon-download-alt
|
|
|
|
Download as
|
|
|
|
%span.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li= link_to "Email Patches", project_merge_request_path(@project, @merge_request, format: :patch)
|
|
|
|
%li= link_to "Plain Diff", project_merge_request_path(@project, @merge_request, format: :diff)
|
2012-07-04 18:26:23 -04:00
|
|
|
|
2013-02-18 07:49:56 -05:00
|
|
|
= link_to 'Close', project_merge_request_path(@project, @merge_request, merge_request: {state_event: :close }), method: :put, class: "btn grouped btn-close", title: "Close merge request"
|
2012-07-04 18:26:23 -04:00
|
|
|
|
2012-08-10 18:07:50 -04:00
|
|
|
= link_to edit_project_merge_request_path(@project, @merge_request), class: "btn grouped" do
|
2012-06-29 14:55:22 -04:00
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
|
|
|
|
2013-01-30 09:40:43 -05:00
|
|
|
.pull-right
|
2012-09-10 09:27:14 -04:00
|
|
|
.span3#votes= render 'votes/votes_block', votable: @merge_request
|
2012-06-29 14:55:22 -04:00
|
|
|
|
|
|
|
.back_link
|
|
|
|
= link_to project_merge_requests_path(@project) do
|
|
|
|
← To merge requests
|