Sha256: bafac7b45c619616d14786db9433e44600628aa8f2a83142620dda5f963a2b81

Contents?: true

Size: 1.56 KB

Versions: 22

Compression:

Stored size: 1.56 KB

Contents

/**
 * @ngdoc object
 * @name  Bastion.docker-tags.controller:DockerTagsController
 *
 * @requires $scope
 * @requires $location
 * @requires Nutupane
 * @requires DockerTag
 * @requires CurrentOrganization
 * @requires translate
 *
 * @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', 'translate',
    function ($scope, $location, Nutupane, DockerTag, CurrentOrganization, translate) {

        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;

        // Labels so breadcrumb strings can be translated
        $scope.label = translate('Container Image 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

22 entries across 22 versions & 1 rubygems

Version Path
katello-4.14.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js