Sha256: 391391c5a63bcbcb74dd76a8793265c818e0d5b1e293ae1b7cb87df754052a0b
Contents?: true
Size: 1.45 KB
Versions: 48
Compression:
Stored size: 1.45 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(", "); }; }] );
Version data entries
48 entries across 48 versions & 1 rubygems