summaryrefslogtreecommitdiff
path: root/app/views/groups/merge_requests.html.haml
blob: ad916e3aeec2299710aec5f30e86b7a439285280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- @can_bulk_update = can?(current_user, :admin_merge_request, @group) && @group.licensed_feature_available?(:group_bulk_edit)

- page_title _("Merge requests")

- if issuables_count_for_state(:merge_requests, :all) == 0
  = render 'shared/empty_states/merge_requests', project_select_button: true
- else
  .top-area
    = render 'shared/issuable/nav', type: :merge_requests
    - if current_user
      .nav-controls
        - if @can_bulk_update
          = render_if_exists 'shared/issuable/bulk_update_button', type: :merge_requests

        = render 'shared/new_project_item_select', path: 'merge_requests/new', label: "New merge request", type: :merge_requests, with_feature_enabled: 'merge_requests', with_shared: false, include_projects_in_subgroups: true

  = render 'shared/issuable/search_bar', type: :merge_requests

  - if @can_bulk_update
    = render_if_exists 'shared/issuable/group_bulk_update_sidebar', group: @group, type: :merge_requests

  = render 'shared/merge_requests'