Sha256: ef5fdd0c1c0ad0d80936643a2f69217764e4c91d976cc9b86694075689d8b8ce

Contents?: true

Size: 607 Bytes

Versions: 238

Compression:

Stored size: 607 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_hosts'], activationKey['unlimited_hosts']);
            return translate('%(consumed)s out of %(quantity)s')
                .replace('%(consumed)s', activationKey['usage_count'])
                .replace('%(quantity)s', quantity);
        };
    }]
);

Version data entries

238 entries across 238 versions & 1 rubygems

Version Path
katello-3.12.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.11.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.10.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.10.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.10.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.10.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.10.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.9.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.10.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.9.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js
katello-3.8.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js