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

Version Path
katello-4.10.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.9.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.10.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.10.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.9.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.9.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.9.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.9.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.15.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.15.0.rc1.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.15.0.rc1.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.15.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.13.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.13.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js