summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-12-19 15:10:00 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-12-19 15:10:00 +0000
commit7269df2822de786716636f757dee0f3780c5b08b (patch)
treeb205de0b1ec0b7831366c0c0a8cb05526af3eb59
parent54ab4adc335a46eb38f43c93e3216c9029068fbf (diff)
downloadgitlab-ce-7269df2822de786716636f757dee0f3780c5b08b.tar.gz
Use group name for css classes
-rw-r--r--app/views/projects/ci/pipelines/_pipeline.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/ci/pipelines/_pipeline.html.haml b/app/views/projects/ci/pipelines/_pipeline.html.haml
index 2e2bac9cd32..74ad9557130 100644
--- a/app/views/projects/ci/pipelines/_pipeline.html.haml
+++ b/app/views/projects/ci/pipelines/_pipeline.html.haml
@@ -44,10 +44,10 @@
- pipeline.stages.each do |stage|
- if stage.status
- detailed_status = stage.detailed_status(current_user)
- - klass = "has-tooltip ci-status-icon ci-status-icon-#{detailed_status}"
+ - klass = "has-tooltip ci-status-icon ci-status-icon-#{detailed_status.group}"
- hasMultipleBuilds = stage.statuses.count > 1
- icon_status = "#{detailed_status.icon}_borderless"
- - icon_status_klass = "ci-status-icon ci-status-icon-#{detailed_status}"
+ - icon_status_klass = "ci-status-icon ci-status-icon-#{detailed_status.group}"
- tooltip = "#{stage.name}: #{detailed_status.label || 'not found'}"
.stage-container.mini-pipeline-graph