Sha256: c6d271803f7c8f36477e6077aacf5a322a27d32acc90e1865a5c4bbe7cdbd179
Contents?: true
Size: 1.44 KB
Versions: 22
Compression:
Stored size: 1.44 KB
Contents
(function () { /** * @ngdoc object * @name Bastion.debs.controller:DebContentViewsController * * @description * Provides the functionality for the debs details contentViews page. * * @requires translate * */ function DebContentViewsController($scope, Nutupane, ContentViewVersion, CurrentOrganization, translate) { var contentViewsNutupane, params = { 'deb_id': $scope.$stateParams.debId, 'organization_id': CurrentOrganization }; contentViewsNutupane = new Nutupane(ContentViewVersion, params); $scope.controllerName = 'katello_content_views'; // Labels so breadcrumb strings can be translated $scope.label = translate('Content Views'); contentViewsNutupane.primaryOnly = true; contentViewsNutupane.setSearchKey('contentViewsSearch'); $scope.table = contentViewsNutupane.table; $scope.environmentNames = function (environments) { var names = _.map(environments, function (environment) { return environment.name; }); return names.join(','); }; } angular .module('Bastion.debs') .controller('DebContentViewsController', DebContentViewsController); DebContentViewsController.$inject = [ '$scope', 'Nutupane', 'ContentViewVersion', 'CurrentOrganization' ]; })();
Version data entries
22 entries across 22 versions & 1 rubygems