diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-02-10 09:49:17 -0600 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-02-10 10:03:43 -0600 |
commit | 71cc5de594e4a8657ae1465e6e261ec09898b95b (patch) | |
tree | 05251d4fd6dc2ae4b4abe60c474dd0181adabd25 | |
parent | ce9d41df085428ac7e212e95142f6a6ff0b50ae0 (diff) | |
download | gitlab-ce-71cc5de594e4a8657ae1465e6e261ec09898b95b.tar.gz |
Only show MR widget graph if there are stages
-rw-r--r-- | app/views/projects/merge_requests/widget/_heading.html.haml | 5 |
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 |