Sha256: ba1aab439731509a601cd04824c9326a9e9f800431149c74086a304117e2d273

Contents?: true

Size: 1.14 KB

Versions: 60

Compression:

Stored size: 1.14 KB

Contents

/**
 * @ngdoc object
 * @name  Bastion.content-views.controller:ContentViewsController
 *
 * @requires $scope
 * @requires Nutupane
 * @requires ContentView
 * @requires CurrentOrganization
 *
 * @description
 *   Provides the functionality specific to ContentViews 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.content-views').controller('ContentViewsController',
    ['$scope', 'Nutupane', 'ContentView', 'CurrentOrganization', 'RepositoryTypesService',
    function ($scope, Nutupane, ContentView, CurrentOrganization, RepositoryTypesService) {

        var nutupane = new Nutupane(ContentView, {
            'nondefault': true,
            'organization_id': CurrentOrganization,
            'sort_by': 'name',
            'sort_order': 'ASC'
        });
        nutupane.primaryOnly = true;
        $scope.controllerName = 'katello_content_views';

        $scope.table = nutupane.table;

        $scope.importOnlyEnabled = function() {
            return RepositoryTypesService.pulp3Supported('yum');
        };
    }]
);

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
katello-4.4.2.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.4.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.5.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.5.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.5.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.2.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.3.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.3.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.3.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-4.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js