Sha256: 4f6ea4fd0ed307a72f4fbff60ff91d1182a381b9b50b86cb41c1bc368fa6707d
Contents?: true
Size: 1.17 KB
Versions: 37
Compression:
Stored size: 1.17 KB
Contents
(function () { 'use strict'; /** * @ngdoc controller * @name Bastion.content-views.versions.controller:ContentViewVersion * * @description * Handles fetching of a content view version based on the route ID and putting it * on the scope. */ function ContentViewVersionController($scope, ContentViewVersion) { $scope.version = ContentViewVersion.get({id: $scope.$stateParams.versionId}); $scope.hasRepositories = function (version, type) { var found; found = _.find(version.repositories, function (repository) { return repository['content_type'] === type; }); return found; }; $scope.hasErrata = function (version) { var found = false; found = _.find(version['errata_counts'], function (counts) { return counts !== 0; }); return found; }; } angular .module('Bastion.content-views.versions') .controller('ContentViewVersionController', ContentViewVersionController); ContentViewVersionController.$inject = ['$scope', 'ContentViewVersion']; })();
Version data entries
37 entries across 37 versions & 1 rubygems