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

@ -261,7 +261,7 @@ angular.module('quay').directive('entitySearch', function () {
if (datum.entity.kind == 'user' && !datum.entity.is_robot) {
template += '<i class="fa fa-user fa-lg"></i>';
} else if (datum.entity.kind == 'user' && datum.entity.is_robot) {
template += '<i class="fa fa-wrench fa-lg"></i>';
template += '<i class="fa ci-robot fa-lg"></i>';
} else if (datum.entity.kind == 'team') {
template += '<i class="fa fa-group fa-lg"></i>';
} else if (datum.entity.kind == 'org') {

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>');