gitlabhq/app/views/merge_requests/show/_mr_title.html.haml

32 lines
1.2 KiB
Plaintext
Raw Normal View History

%h3.page_title
= "Merge Request ##{@merge_request.id}:"
 
%span.label-branch= @merge_request.source_branch
→
%span.label-branch= @merge_request.target_branch
2013-01-30 15:40:43 +01:00
%span.pull-right
- if can?(current_user, :modify_merge_request, @merge_request)
2013-02-18 09:40:56 +01:00
- if @merge_request.opened?
.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-05 00:26:23 +02:00
2013-02-18 13:49:56 +01: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-05 00:26:23 +02:00
= link_to edit_project_merge_request_path(@project, @merge_request), class: "btn grouped" do
%i.icon-edit
Edit
2013-01-30 15:40:43 +01:00
.pull-right
2012-09-10 15:27:14 +02:00
.span3#votes= render 'votes/votes_block', votable: @merge_request
.back_link
= link_to project_merge_requests_path(@project) do
← To merge requests