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

Version Path
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.2.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.2.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.2.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.2.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.2.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.2.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.1.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-2.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js