debian-mirror-gitlab/app/views/projects/issues/_merge_requests.html.haml

30 lines
1.2 KiB
Text
Raw Normal View History

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')
%ul.unstyled-list
- has_any_ci = @merge_requests.any?(&:pipeline)
2015-12-23 02:04:40 +05:30
- @merge_requests.each do |merge_request|
%li
%span.merge-request-ci-status
- if merge_request.pipeline
= render_pipeline_status(merge_request.pipeline)
2015-12-23 02:04:40 +05:30
- elsif has_any_ci
= 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
= link_to_gfm merge_request.title, merge_request_path(merge_request), class: "row_title"
- 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)
%span.merge-request-status.prepend-left-10
- if merge_request.merged?
MERGED
- elsif merge_request.closed?
CLOSED
- if @closed_by_merge_requests.present?
%li
= render partial: 'projects/issues/closed_by_box', locals: {merge_request_count: @merge_requests.count}