Commit 58131ac9 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Merge branch '27987-skipped-pipeline-mr-graph' into 'master'

Only show MR widget graph if there are stages

Closes #27987

See merge request !9141
parents 551ce1d2 ce9a9b67
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
Pipeline Pipeline
= link_to "##{@pipeline.id}", namespace_project_pipeline_path(@pipeline.project.namespace, @pipeline.project, @pipeline.id), class: 'pipeline' = link_to "##{@pipeline.id}", namespace_project_pipeline_path(@pipeline.project.namespace, @pipeline.project, @pipeline.id), class: 'pipeline'
= ci_label_for_status(status) = ci_label_for_status(status)
- if @pipeline.stages.any?
.mr-widget-pipeline-graph .mr-widget-pipeline-graph
= render 'shared/mini_pipeline_graph', pipeline: @pipeline, klass: 'js-pipeline-inline-mr-widget-graph' = render 'shared/mini_pipeline_graph', pipeline: @pipeline, klass: 'js-pipeline-inline-mr-widget-graph'
%span %span
......
---
title: Show pipeline graph in MR widget if there are any stages
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment