Sha256: 2fc7027c0179fdb1849572525968bf14403ec5ee736b8cb6158e796de8d90700
Contents?: true
Size: 749 Bytes
Versions: 20
Compression:
Stored size: 749 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'), 'docker': translate('Docker Tags') }; this.contentType = function (type) { return this.contentTypes[type]; }; this.type = function (type) { return type ? translate('Include') : translate('Exclude'); }; }] );
Version data entries
20 entries across 20 versions & 1 rubygems