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.14.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js