2016-02-12 13:42:25 -05:00
|
|
|
- if @merge_requests.any?
|
2015-12-04 14:00:07 -05:00
|
|
|
%h2.merge-requests-title
|
|
|
|
= pluralize(@merge_requests.count, 'Related Merge Request')
|
2016-01-12 20:49:43 -05:00
|
|
|
%ul.unstyled-list
|
2015-12-04 14:00:07 -05:00
|
|
|
- has_any_ci = @merge_requests.any?(&:ci_commit)
|
|
|
|
- @merge_requests.each do |merge_request|
|
|
|
|
%li
|
|
|
|
%span.merge-request-ci-status
|
|
|
|
- if merge_request.ci_commit
|
2016-04-13 10:51:52 -04:00
|
|
|
= render_pipeline_status(merge_request.ci_commit)
|
2015-12-04 14:00:07 -05:00
|
|
|
- elsif has_any_ci
|
|
|
|
= icon('blank fw')
|
|
|
|
%span.merge-request-id
|
2016-03-10 12:39:53 -05:00
|
|
|
= merge_request.to_reference
|
2015-12-04 14:00:07 -05:00
|
|
|
%span.merge-request-info
|
|
|
|
%strong
|
|
|
|
= link_to_gfm merge_request.title, merge_request_path(merge_request), class: "row_title"
|
2015-12-17 11:14:50 -05:00
|
|
|
- unless @issue.project.id == merge_request.target_project.id
|
|
|
|
in
|
|
|
|
- project = merge_request.target_project
|
|
|
|
= link_to project.name_with_namespace, namespace_project_path(project.namespace, project)
|
2015-12-04 14:00:07 -05:00
|
|
|
%span.merge-request-status.prepend-left-10
|
|
|
|
- if merge_request.merged?
|
|
|
|
MERGED
|
|
|
|
- elsif merge_request.closed?
|
|
|
|
CLOSED
|
2016-01-12 20:49:43 -05:00
|
|
|
- if @closed_by_merge_requests.present?
|
|
|
|
= render partial: 'projects/issues/closed_by_box', locals: {merge_request_count: @merge_requests.count}
|