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

Version Path
katello-3.5.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.6.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.6.0.1.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.6.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.6.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.5.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.5.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.5.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.5.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.5.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js