summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-12-21 11:40:39 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-12-21 11:43:53 +0000
commitf93b876c6d0e580a9532b76855cba23f5fd5f3e7 (patch)
tree237c153c33caa53b993d5d35ccd96ffe7f57547e
parent87b01636e4baf3ef58d83139129956e7eac39d1f (diff)
downloadgitlab-ce-f93b876c6d0e580a9532b76855cba23f5fd5f3e7.tar.gz
Adds CSS class to status icon on MR widget to prevent non-colored icon
Adds MR id to changelor
-rw-r--r--app/views/projects/merge_requests/widget/_heading.html.haml2
-rw-r--r--changelogs/unreleased/25898-ci-icon-color-mr.yml4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/widget/_heading.html.haml b/app/views/projects/merge_requests/widget/_heading.html.haml
index 9ab7971b56c..5bc417d1760 100644
--- a/app/views/projects/merge_requests/widget/_heading.html.haml
+++ b/app/views/projects/merge_requests/widget/_heading.html.haml
@@ -17,7 +17,7 @@
- # TODO, remove in later versions when services like Jenkins will set CI status via Commit status API
.mr-widget-heading
- %w[success skipped canceled failed running pending].each do |status|
- .ci_widget{class: "ci-#{status}", style: "display:none"}
+ .ci_widget{class: "ci-#{status} ci-status-icon-#{status}", style: "display:none"}
= ci_icon_for_status(status)
%span
CI build
diff --git a/changelogs/unreleased/25898-ci-icon-color-mr.yml b/changelogs/unreleased/25898-ci-icon-color-mr.yml
new file mode 100644
index 00000000000..dd0f93e176f
--- /dev/null
+++ b/changelogs/unreleased/25898-ci-icon-color-mr.yml
@@ -0,0 +1,4 @@
+---
+title: Adds CSS class to status icon on MR widget to prevent non-colored icon
+merge_request: 8219
+author: