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.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
katello-4.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.10.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.9.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.10.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.10.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.8.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.9.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.8.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.9.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.7.6 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.8.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.9.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.9.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js
katello-4.8.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js