Sha256: 173b01b9da7734b67bd23147faea813c972733f7168db4da69eef84abaaefbdd

Contents?: true

Size: 726 Bytes

Versions: 191

Compression:

Stored size: 726 Bytes

Contents

/**
 * @ngdoc object
 * @name Bastion.content-credentials.filter:contentTypeFilter
 *
 * @requires translate
 *
 * @description
 *   Provides filter functionality to replace cert with Certificates and gpg_key with GPG Key
 */

angular.module('Bastion.content-credentials').filter('contentTypeFilter',
    ['$filter', 'translate',
    function ($filter, translate) {
        return function (contentType) {
            var filtered = translate("Unsupported Type!");

            if (contentType === "cert") {
                filtered = translate("Certificate");
            } else if (contentType === "gpg_key") {
                filtered = translate("GPG Key");
            }
            return filtered;
        };
    }]
);

Version data entries

191 entries across 191 versions & 1 rubygems

Version Path
katello-4.14.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js