summaryrefslogtreecommitdiff
path: root/app/helpers/ci_status_helper.rb
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-07-19 06:47:26 -0700
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-07-19 06:47:26 -0700
commit0301fa8d9c67623c3311eab64d174123bba4b943 (patch)
treed6257013bb7ee34dc63a341e270039e67c6cc645 /app/helpers/ci_status_helper.rb
parent5b5cafe024c4437a17a219708c9ec00376e98ece (diff)
downloadgitlab-ce-0301fa8d9c67623c3311eab64d174123bba4b943.tar.gz
Add new icons for every CI status
Diffstat (limited to 'app/helpers/ci_status_helper.rb')
-rw-r--r--app/helpers/ci_status_helper.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb
index 5219a0ff47b..59a8365d60b 100644
--- a/app/helpers/ci_status_helper.rb
+++ b/app/helpers/ci_status_helper.rb
@@ -26,18 +26,20 @@ module CiStatusHelper
icon_name =
case status
when 'success'
- 'check'
+ 'icon_status_success'
+ when 'success_with_warnings'
+ 'icon_status_warning'
when 'failed'
- 'close'
+ 'icon_status_failed'
when 'pending'
- 'clock-o'
+ 'icon_status_pending'
when 'running'
- 'icon_running'
+ 'icon_status_running'
else
- 'circle'
+ 'icon_status_cancel'
end
- status == 'running' ? custom_icon(icon_name) : icon(icon_name + ' fw')
+ custom_icon(icon_name)
end
def render_commit_status(commit, tooltip_placement: 'auto left', cssclass: '')