_discussion.html.haml 1.61 KB
Newer Older
1 2 3
- content_for :note_actions do
  - if can?(current_user, :modify_merge_request, @merge_request)
    - if @merge_request.open?
Vinnie Okada's avatar
Vinnie Okada committed
4
      = link_to 'Close', namespace_project_merge_request_path(@project.namespace, @project, @merge_request, merge_request: {state_event: :close }), method: :put, class: "btn btn-grouped btn-close close-mr-link js-note-target-close", title: "Close merge request"
5
    - if @merge_request.closed?
Vinnie Okada's avatar
Vinnie Okada committed
6
      = link_to 'Reopen', namespace_project_merge_request_path(@project.namespace, @project, @merge_request, merge_request: {state_event: :reopen }), method: :put, class: "btn btn-grouped btn-reopen reopen-mr-link js-note-target-reopen", title: "Reopen merge request"
7 8

.row
9
  %section.col-md-9
10 11
    = render "projects/merge_requests/show/participants"
    = render "projects/notes/notes_with_form"
12
  %aside.col-md-3
13 14 15 16 17 18
    .issuable-affix
      .clearfix
        %span.slead.has_tooltip{:"data-original-title" => 'Cross-project reference'}
          = cross_project_reference(@project, @merge_request)
      %hr
      .context
19
        = render partial: 'projects/merge_requests/show/context', locals: { merge_request: @merge_request }
20
      %hr
21 22 23 24 25 26 27 28 29
      .votes-holder
        %h6 Votes
        #votes= render 'votes/votes_block', votable: @merge_request

      - if @merge_request.labels.any?
        %hr
        %h6 Labels
        .merge-request-show-labels
          - @merge_request.labels.each do |label|
30
            = link_to namespace_project_merge_requests_path(@project.namespace, @project, label_name: label.name) do
31
              = render_colored_label(label)
32 33
  = link_to '#aside', class: 'show-aside' do
    %i.fa.fa-angle-left