_merge_requests.html.haml 748 Bytes
Newer Older
1
- if @merge_requests.any?
2
  - @merge_requests.group_by(&:target_project).each do |group|
3
    .panel.panel-default.panel-small
4
      - project = group[0]
5
      .panel-heading
6 7 8 9 10
        = link_to project.name_with_namespace, namespace_project_merge_requests_path(project.namespace, project)
        - if can?(current_user, :create_merge_request, project)
          .pull-right
            = link_to 'New merge request', new_namespace_project_merge_request_path(project.namespace, project)

11
      %ul.well-list.mr-list
12
        - group[1].each do |merge_request|
13
          = render 'projects/merge_requests/merge_request', merge_request: merge_request
14 15 16
  = paginate @merge_requests, theme: "gitlab"

- else
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
17
  .nothing-here-block No merge requests to show