debian-mirror-gitlab/app/views/projects/merge_requests/index.html.haml

30 lines
1.1 KiB
Text
Raw Normal View History

- @no_container = true
2016-09-29 09:46:39 +05:30
- @bulk_edit = can?(current_user, :admin_merge_request, @project)
2015-09-11 14:41:01 +05:30
- page_title "Merge Requests"
2017-08-17 22:00:37 +05:30
- unless @project.default_issues_tracker?
= content_for :sub_nav do
= render "projects/merge_requests/head"
2015-09-11 14:41:01 +05:30
= render 'projects/last_push'
2016-04-02 18:10:28 +05:30
2017-08-17 22:00:37 +05:30
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'filtered_search'
2015-04-26 12:48:37 +05:30
2017-08-17 22:00:37 +05:30
- if @project.merge_requests.exists?
%div{ class: container_class }
.top-area
= render 'shared/issuable/nav', type: :merge_requests
.nav-controls
- 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
2016-04-02 18:10:28 +05:30
2017-08-17 22:00:37 +05:30
= render 'shared/issuable/search_bar', type: :merge_requests
2016-04-02 18:10:28 +05:30
2017-08-17 22:00:37 +05:30
.merge-requests-holder
= render 'merge_requests'
- else
= render 'shared/empty_states/merge_requests', button_path: new_namespace_project_merge_request_path(@project.namespace, @project)