Sha256: bfaa0e7a13e1d57f660fa0fe22ecc7de031e4c684e28a495f376016f10be2909

Contents?: true

Size: 623 Bytes

Versions: 10

Compression:

Stored size: 623 Bytes

Contents

/**
 * @ngdoc filter
 * @name  Bastion.activation-keys.filter:activationKeyConsumedFilter
 */
angular.module('Bastion.activation-keys').filter('activationKeyConsumedFilter',
    ['$filter', 'translate',
    function ($filter, translate) {
        return function (activationKey) {
            var quantity = $filter('unlimitedFilter')(activationKey['max_content_hosts'], activationKey['unlimited_content_hosts']);
            return translate('%(consumed)s out of %(quantity)s')
                .replace('%(consumed)s', activationKey['usage_count'])
                .replace('%(quantity)s', quantity);
        };
    }]
);

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-2.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-2.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-2.4.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-2.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.0.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-2.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-2.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-2.4.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-2.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-2.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js