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