Sha256: 173b01b9da7734b67bd23147faea813c972733f7168db4da69eef84abaaefbdd

Contents?: true

Size: 726 Bytes

Versions: 196

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

196 entries across 196 versions & 1 rubygems

Version Path
katello-4.6.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.5.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.5.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.2.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.3.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.3.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.3.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.2.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js