_merge_requests.html.haml 538 Bytes
Newer Older
1
- if @merge_requests.any?
2
  - @merge_requests.group_by(&:target_project).each do |group|
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
3
    .ui-box.ui-box-small
4
      - project = group[0]
5
      .title
6
        = link_to_project project
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
7
        = link_to 'show all', project_merge_requests_path(project), class: 'pull-right'
8
      %ul.well-list.mr-list
9
        - group[1].each do |merge_request|
10
          = render 'projects/merge_requests/merge_request', merge_request: merge_request
11 12 13
  = paginate @merge_requests, theme: "gitlab"

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