Sha256: 63c6872c1ac9041ac4564f852f6c40b519bb9815ba5895b8619e033b1f95a6bb

Contents?: true

Size: 769 Bytes

Versions: 140

Compression:

Stored size: 769 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.repository.service:ostreeUpstreamSyncPolicy
 *
 * @requires translate
 *
 * @description
 *   Provides a ostree upstream syncPolicies for repositories
 */
angular.module('Bastion.repositories').service('OstreeUpstreamSyncPolicy',
    ['translate', function (translate) {

        this.syncPolicies = {
            'latest': translate('Latest Only'),
            'all': translate('All History'),
            'custom': translate('Custom Depth')
        };

        this.syncPolicyName = function (policy, depth) {
            if (policy === "custom") {
                return translate('Custom Depth (Currently %s)').replace('%s', depth.toString());
            }
            return this.syncPolicies[policy];
        };
    }]
);

Version data entries

140 entries across 140 versions & 1 rubygems

Version Path
katello-3.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.10.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.10.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.9.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.10.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.9.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.8.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.9.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.9.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.7.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.7.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.8.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.8.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.8.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.7.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.8.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.7.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.7.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js