Sha256: 7faab7bf33e8104b4f15051c470be245e1205aedd3c05bce9578ab6f67cd6471
Contents?: true
Size: 1.74 KB
Versions: 111
Compression:
Stored size: 1.74 KB
Contents
/** * @ngdoc object * @name Bastion.docker-tags.controller:DockerTagsController * * @requires $scope * @requires $location * @requires Nutupane * @requires DockerTag * @requires CurrentOrganization * * @description * Provides the functionality specific to docker tags for use with the Nutupane UI pattern. * Defines the columns to display and the transform function for how to generate each row * within the table. */ angular.module('Bastion.docker-tags').controller('DockerTagsController', ['$scope', '$location', 'Nutupane', 'DockerTag', 'CurrentOrganization', function ($scope, $location, Nutupane, DockerTag, CurrentOrganization) { var params = { 'organization_id': CurrentOrganization, 'sort_by': 'name', 'sort_order': 'ASC', 'grouped': true }; var nutupane = new Nutupane(DockerTag, params); $scope.controllerName = 'katello_docker_tags'; $scope.table = nutupane.table; $scope.controllerName = 'katello_docker_tags'; $scope.table.closeItem = function () { $scope.transitionTo('docker-tags'); }; $scope.availableSchemaVersions = function (tag) { var versions = []; if (tag.manifest_schema1) { versions.push(1); } if (tag.manifest_schema2) { versions.push(2); } return versions.join(", "); }; $scope.getRepositoryNames = function (tag) { return tag.repositories.map(function(repo) { return repo.name; }).filter(function(item, index, names) { return names.indexOf(item) >= index; }).sort().join(', '); }; }] );
Version data entries
111 entries across 111 versions & 1 rubygems