Sha256: 7bec40b16def92065bd21a7fb5a012eb6e63957e8f7379ac9aeb91d0d2f03199

Contents?: true

Size: 1.09 KB

Versions: 8

Compression:

Stored size: 1.09 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.table = nutupane.table;
        $scope.controllerName = 'katello_docker_tags';

        $scope.table.closeItem = function () {
            $scope.transitionTo('docker-tags');
        };
    }]
);

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js