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