Switch to the new robot icon

This commit is contained in:
Joseph Schorr 2015-04-23 16:41:47 -04:00
parent 864bedf79b
commit 8663bcd1c7
19 changed files with 69 additions and 65 deletions

View file

@ -51,7 +51,7 @@ angular.module('quay').factory('StringBuilderService', ['$sce', 'UtilService', f
'team': 'group',
'token': 'key',
'repo': 'hdd-o',
'robot': 'wrench',
'robot': 'ci-robot',
'tag': 'tag',
'role': 'th-large',
'original_role': 'th-large',
@ -101,7 +101,11 @@ angular.module('quay').factory('StringBuilderService', ['$sce', 'UtilService', f
var icon = fieldIcons[key];
if (icon) {
markedDown = '<i class="fa fa-' + icon + '"></i>' + markedDown;
if (icon.indexOf('ci-') < 0) {
icon = 'fa-' + icon;
}
markedDown = '<i class="fa ' + icon + '"></i>' + markedDown;
}
description = description.replace('{' + key + '}', '<code title="' + safe + '">' + markedDown + '</code>');