BigW Consortium Gitlab

_mr_title.html.haml 2.32 KB
Newer Older
1 2
- if @merge_request.closed_without_fork?
  .alert.alert-danger
Katarzyna Kobierska committed
3
    %p The source project of this merge request has been removed.
4

5 6
.clearfix.detail-page-header
  .issuable-header
7
    .issuable-status-box.status-box{ class: status_box_class(@merge_request) }
8
      = icon(@merge_request.state_icon_name, class: "hidden-sm hidden-md hidden-lg")
9
      %span.hidden-xs
10 11 12 13
        = @merge_request.state_human_name

    %a.btn.btn-default.pull-right.visible-xs-block.gutter-toggle.issuable-gutter-toggle.js-sidebar-toggle{ href: "#" }
      = icon('angle-double-left')
14

15
    .issuable-meta
16
      = issuable_meta(@merge_request, @project, "Merge Request")
17

18 19 20
  - if can?(current_user, :update_merge_request, @merge_request)
    .issuable-actions
      .clearfix.issue-btn-group.dropdown
Clement Ho committed
21
        %button.btn.btn-default.pull-left.hidden-md.hidden-lg{ type: "button", data: { toggle: "dropdown" } }
22
          Options
23
          = icon('caret-down')
24 25
        .dropdown-menu.dropdown-menu-align-right.hidden-lg
          %ul
26
            %li{ class: merge_request_button_visibility(@merge_request, true) }
27
              = link_to 'Close', merge_request_path(@merge_request, merge_request: { state_event: :close }), method: :put, title: 'Close merge request'
28
            %li{ class: merge_request_button_visibility(@merge_request, false) }
29 30
              = link_to 'Reopen', merge_request_path(@merge_request, merge_request: {state_event: :reopen }), method: :put, class: 'reopen-mr-link', title: 'Reopen merge request'
            %li
31
              = link_to 'Edit', edit_namespace_project_merge_request_path(@project.namespace, @project, @merge_request), class: 'issuable-edit'
32 33
        = link_to 'Close', merge_request_path(@merge_request, merge_request: { state_event: :close }), method: :put, class: "hidden-xs hidden-sm btn btn-grouped btn-close #{merge_request_button_visibility(@merge_request, true)}", title: 'Close merge request'
        = link_to 'Reopen', merge_request_path(@merge_request, merge_request: {state_event: :reopen }), method: :put, class: "hidden-xs hidden-sm btn btn-grouped btn-reopen reopen-mr-link #{merge_request_button_visibility(@merge_request, false)}", title: 'Reopen merge request'
34
        = link_to edit_namespace_project_merge_request_path(@project.namespace, @project, @merge_request), class: "hidden-xs hidden-sm btn btn-grouped issuable-edit" do
35
          Edit