_mr_title.html.haml 1.31 KB
Newer Older
randx's avatar
randx committed
1
%h3.page_title
2
3
  = "Merge Request ##{@merge_request.id}:"
   
4
  %span.label_branch= @merge_request.source_branch
5
  →
6
  %span.label_branch= @merge_request.target_branch
7

8
  %span.pull-right
9
    - if can?(current_user, :modify_merge_request, @merge_request)
10
      - if @merge_request.opened?
11
12
13
14
15
16
17
18
        .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)
randx's avatar
randx committed
19

Andrew8xx8's avatar
Andrew8xx8 committed
20
21
        = 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"
        = p project_merge_request_path(@project, @merge_request, merge_request: {state_event: :close })
randx's avatar
randx committed
22

23
        = link_to edit_project_merge_request_path(@project, @merge_request), class: "btn grouped" do
24
25
26
          %i.icon-edit
          Edit

27
.pull-right
28
  .span3#votes= render 'votes/votes_block', votable: @merge_request
29
30
31
32

.back_link
  = link_to project_merge_requests_path(@project) do
    ← To merge requests