Sha256: b8049cf71acef1d000152d555554bbe8c9361f1eb0b16e33ba171a1388544b94

Contents?: true

Size: 1.09 KB

Versions: 7

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js