Sha256: 6a8b8743b29367c7a830eea2500cc73b1fac0cac40bde050cf54922a06f85eb4
Contents?: true
Size: 701 Bytes
Versions: 37
Compression:
Stored size: 701 Bytes
Contents
/** * @ngdoc service * @name Bastion.content-views.service:FilterHelper * * @requires translate * * @description * Provides helper methods for common Filter operations. */ angular.module('Bastion.content-views').service('FilterHelper', ['translate', function (translate) { this.contentTypes = { 'rpm': translate('RPM'), 'erratum': translate('Errata'), 'package_group': translate('Package Groups') }; this.contentType = function (type) { return this.contentTypes[type]; }; this.type = function (type) { return type ? translate('Include') : translate('Exclude'); }; }] );
Version data entries
37 entries across 37 versions & 1 rubygems