summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-02-10 09:49:17 -0600
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-02-10 10:03:43 -0600
commit71cc5de594e4a8657ae1465e6e261ec09898b95b (patch)
tree05251d4fd6dc2ae4b4abe60c474dd0181adabd25
parentce9d41df085428ac7e212e95142f6a6ff0b50ae0 (diff)
downloadgitlab-ce-71cc5de594e4a8657ae1465e6e261ec09898b95b.tar.gz
Only show MR widget graph if there are stages
-rw-r--r--app/views/projects/merge_requests/widget/_heading.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/merge_requests/widget/_heading.html.haml b/app/views/projects/merge_requests/widget/_heading.html.haml
index bef76f16ca7..e3062f47788 100644
--- a/app/views/projects/merge_requests/widget/_heading.html.haml
+++ b/app/views/projects/merge_requests/widget/_heading.html.haml
@@ -9,8 +9,9 @@
Pipeline
= link_to "##{@pipeline.id}", namespace_project_pipeline_path(@pipeline.project.namespace, @pipeline.project, @pipeline.id), class: 'pipeline'
= ci_label_for_status(status)
- .mr-widget-pipeline-graph
- = render 'shared/mini_pipeline_graph', pipeline: @pipeline, klass: 'js-pipeline-inline-mr-widget-graph'
+ - if @pipeline.stages.any?
+ .mr-widget-pipeline-graph
+ = render 'shared/mini_pipeline_graph', pipeline: @pipeline, klass: 'js-pipeline-inline-mr-widget-graph'
%span
for
= succeed "." do