summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-02-10 20:48:24 +0000
committerRegis <boudinot.regis@yahoo.com>2017-02-14 15:28:41 -0700
commitdbb530d1b293e7ed19aa7cc7a2427d12224eb061 (patch)
treeac3b9615161be7f9a0f8f09aa3d0b2f075c581a9
parentc976a7c324a01f8896454afc34c7516cdc5a3c29 (diff)
downloadgitlab-ce-dbb530d1b293e7ed19aa7cc7a2427d12224eb061.tar.gz
Merge branch '27987-skipped-pipeline-mr-graph' into 'master'
Only show MR widget graph if there are stages Closes #27987 See merge request !9141
-rw-r--r--app/views/projects/merge_requests/widget/_heading.html.haml5
-rw-r--r--changelogs/unreleased/27987-skipped-pipeline-mr-graph.yml4
2 files changed, 7 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
diff --git a/changelogs/unreleased/27987-skipped-pipeline-mr-graph.yml b/changelogs/unreleased/27987-skipped-pipeline-mr-graph.yml
new file mode 100644
index 00000000000..e4287d6276c
--- /dev/null
+++ b/changelogs/unreleased/27987-skipped-pipeline-mr-graph.yml
@@ -0,0 +1,4 @@
+---
+title: Show pipeline graph in MR widget if there are any stages
+merge_request:
+author: