BigW Consortium Gitlab

_mr_title.html.haml 1.68 KB
Newer Older
1 2
.detail-page-header
  .status-box{ class: status_box_class(@merge_request) }
3 4 5
    %span.hidden-xs
      = @merge_request.state_human_name
    %span.hidden-sm.hidden-md.hidden-lg
6
      = icon(@merge_request.state_icon_name)
7
  %a.btn.btn-default.pull-right.visible-xs-block.gutter-toggle.js-sidebar-toggle{ href: "#" }
8
    = icon('angle-double-left')
9 10
  .issue-meta
    %strong.identifier
11 12 13 14 15
      %span.hidden-sm.hidden-md.hidden-lg
        MR
      %span.hidden-xs
        Merge Request
      !#{@merge_request.iid}
16
    %span.creator
17
      opened
18
      .editor-details
19 20
        = time_ago_with_tooltip(@merge_request.created_at)
        by
21
        %strong
22
          = link_to_member(@project, @merge_request.author, size: 24, mobile_classes: "hidden-xs")
23
        %strong
24
          = link_to_member(@project, @merge_request.author, size: 24, mobile_classes: "hidden-sm hidden-md hidden-lg",
25
            by_username: true, avatar: false)
26 27

  .issue-btn-group.pull-right
28
    - if can?(current_user, :update_merge_request, @merge_request)
29
      - if @merge_request.open?
Andriy Dyadyura committed
30 31
        = link_to 'Close', merge_request_path(@merge_request, merge_request: { state_event: :close }), method: :put, class: 'btn btn-nr btn-grouped btn-close', title: 'Close merge request'
        = link_to edit_namespace_project_merge_request_path(@project.namespace, @project, @merge_request), class: 'btn btn-nr btn-grouped issuable-edit', id: 'edit_merge_request' do
32 33 34
          %i.fa.fa-pencil-square-o
          Edit
      - if @merge_request.closed?
Andriy Dyadyura committed
35
        = link_to 'Reopen', merge_request_path(@merge_request, merge_request: {state_event: :reopen }), method: :put, class: 'btn btn-nr btn-grouped btn-reopen reopen-mr-link', title: 'Reopen merge request'