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