Sha256: ecd393e1f19157a1acd50e3eddd9598ef74373464f8bfe0544549f2180e01277

Contents?: true

Size: 594 Bytes

Versions: 248

Compression:

Stored size: 594 Bytes

Contents

/**
 * @ngdoc filter
 * @name  Bastion.subscriptions.filter:subscriptionConsumedFilter
 *
 * @description
 *
 *
 * @example
 *
 */
angular.module('Bastion.subscriptions').filter('subscriptionConsumedFilter',
    ['$filter', 'translate',
    function ($filter, translate) {
        return function (subscription) {
            var quantity = $filter('unlimitedFilter')(subscription.quantity);
            return translate('%(consumed)s out of %(quantity)s')
                .replace('%(consumed)s', subscription.consumed)
                .replace('%(quantity)s', quantity);
        };
    }]
);

Version data entries

248 entries across 248 versions & 1 rubygems

Version Path
katello-4.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.2.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.3.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.3.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.3.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.2.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.1.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.0.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.2.0.1.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-3.18.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.2.0.1.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js