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

27 lines
1.1 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- @can_bulk_update = can?(current_user, :admin_merge_request, @project)
2018-05-09 12:01:36 +05:30
- merge_project = merge_request_source_project_for_project(@project)
2017-09-10 17:25:29 +05:30
- new_merge_request_path = project_new_merge_request_path(merge_project) if merge_project
2016-09-29 09:46:39 +05:30
2015-09-11 14:41:01 +05:30
- page_title "Merge Requests"
2018-03-17 18:26:18 +05:30
- new_merge_request_email = @project.new_issuable_address(current_user, 'merge_request')
2016-04-02 18:10:28 +05:30
2019-12-04 20:38:33 +05:30
= render 'projects/last_push'
2017-09-10 17:25:29 +05:30
2017-08-17 22:00:37 +05:30
- if @project.merge_requests.exists?
2019-12-04 20:38:33 +05:30
.top-area
= render 'shared/issuable/nav', type: :merge_requests
.nav-controls
= render "projects/merge_requests/nav_btns", merge_project: merge_project, new_merge_request_path: new_merge_request_path
2016-04-02 18:10:28 +05:30
2019-12-04 20:38:33 +05:30
= render 'shared/issuable/search_bar', type: :merge_requests
2016-04-02 18:10:28 +05:30
2019-12-04 20:38:33 +05:30
- if @can_bulk_update
= render 'shared/issuable/bulk_update_sidebar', type: :merge_requests
2017-09-10 17:25:29 +05:30
2019-12-04 20:38:33 +05:30
.merge-requests-holder
= render 'merge_requests'
- if new_merge_request_email
= render 'projects/issuable_by_email', email: new_merge_request_email, issuable_type: 'merge_request'
2017-08-17 22:00:37 +05:30
- else
2017-09-10 17:25:29 +05:30
= render 'shared/empty_states/merge_requests', button_path: new_merge_request_path