Sha256: 915d189fd5edea6a7170828f5e177c0a8fe62cf7273e00654830f263fdc55432

Contents?: true

Size: 969 Bytes

Versions: 9

Compression:

Stored size: 969 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.content-hosts.service:ContentHostsHelper
 *
 * @description
 *   Helper service that contains functionality common amongst content hosts.
 */
angular.module('Bastion.content-hosts').service('ContentHostsHelper',
    function () {
        this.getSubscriptionStatusColor = function (status) {
            var colors = {
                    'valid': 'green',
                    'partial': 'yellow',
                    'invalid': 'red',
                    0: 'green',
                    1: 'yellow',
                    2: 'red',
                    3: 'red'
                };

            return colors[status] ? colors[status] : 'red';
        };

        this.getGlobalStatusColor = function (status) {
            var colors = {
                    0: 'green',
                    1: 'yellow',
                    2: 'red'
                };

            return colors[status] ? colors[status] : 'red';
        };
    }
);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-3.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js
katello-3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js
katello-3.0.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js
katello-3.0.0.rc7 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js
katello-3.0.0.rc5 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js
katello-3.0.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js
katello-3.0.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js
katello-3.0.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js
katello-3.0.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js