BigW Consortium Gitlab

index.html.haml 882 Bytes
Newer Older
1
- @no_container = true
2 3
- @bulk_edit = can?(current_user, :admin_merge_request, @project)

4
- page_title "Merge Requests"
5
= render "projects/issues/head"
6
= render 'projects/last_push'
7

8
%div{ class: container_class }
9 10 11 12
  .top-area
    = render 'shared/issuable/nav', type: :merge_requests
    .nav-controls
      = render 'shared/issuable/search_form', path: namespace_project_merge_requests_path(@project.namespace, @project)
13

14 15 16 17
      - merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project))
      - if merge_project
        = link_to new_namespace_project_merge_request_path(merge_project.namespace, merge_project), class: "btn btn-new", title: "New Merge Request" do
          New Merge Request
18

19
  = render 'shared/issuable/filter', type: :merge_requests
20

21 22
  .merge-requests-holder
    = render 'merge_requests'