2016-06-02 11:05:42 +05:30
|
|
|
- if @merge_requests.any?
|
2015-12-23 02:04:40 +05:30
|
|
|
%h2.merge-requests-title
|
|
|
|
= pluralize(@merge_requests.count, 'Related Merge Request')
|
2016-09-29 09:46:39 +05:30
|
|
|
%ul.unstyled-list.related-merge-requests
|
2018-03-17 18:26:18 +05:30
|
|
|
- has_any_head_pipeline = @merge_requests.any?(&:head_pipeline_id)
|
2015-12-23 02:04:40 +05:30
|
|
|
- @merge_requests.each do |merge_request|
|
2019-02-13 22:33:31 +05:30
|
|
|
- merge_request = merge_request.present(current_user: current_user)
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
|
|
|
%span.merge-request-ci-status
|
2019-02-13 22:33:31 +05:30
|
|
|
- if merge_request.can_read_pipeline?
|
2017-08-17 22:00:37 +05:30
|
|
|
= render_pipeline_status(merge_request.head_pipeline)
|
2018-03-17 18:26:18 +05:30
|
|
|
- elsif has_any_head_pipeline
|
2015-12-23 02:04:40 +05:30
|
|
|
= icon('blank fw')
|
|
|
|
%span.merge-request-id
|
2016-06-02 11:05:42 +05:30
|
|
|
= merge_request.to_reference
|
2015-12-23 02:04:40 +05:30
|
|
|
%span.merge-request-info
|
|
|
|
%strong
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to merge_request.title, merge_request_path(merge_request), class: "row_title"
|
2015-12-23 02:04:40 +05:30
|
|
|
- unless @issue.project.id == merge_request.target_project.id
|
|
|
|
in
|
|
|
|
- project = merge_request.target_project
|
2018-03-27 19:54:05 +05:30
|
|
|
= link_to project.full_name, project_path(project)
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
- if merge_request.merged?
|
|
|
|
%span.merge-request-status.prepend-left-10.merged
|
|
|
|
Merged
|
|
|
|
- elsif merge_request.closed?
|
|
|
|
%span.merge-request-status.prepend-left-10.closed
|
|
|
|
Closed
|
|
|
|
- else
|
|
|
|
%span.merge-request-status.prepend-left-10.open
|
|
|
|
Open
|
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
- if @closed_by_merge_requests.present?
|
2016-06-16 23:09:34 +05:30
|
|
|
%li
|
|
|
|
= render partial: 'projects/issues/closed_by_box', locals: {merge_request_count: @merge_requests.count}
|