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.13.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.13.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.13.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.13.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.12.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.12.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.11.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.10.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.10.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.10.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js
katello-3.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/ostree-upstream-sync-policy.service.js