Sha256: cd9d36d275c11ce219a73f40159a828ec559c28d9c43b0938d6ebe5de43919aa

Contents?: true

Size: 987 Bytes

Versions: 6

Compression:

Stored size: 987 Bytes

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',
    function ($scope, Nutupane, ContentView, CurrentOrganization) {

        var nutupane = new Nutupane(ContentView, {
            'nondefault': true,
            'organization_id': CurrentOrganization,
            'sort_by': 'name',
            'sort_order': 'ASC'
        });
        nutupane.masterOnly = true;

        $scope.table = nutupane.table;
        $scope.controllerName = 'katello_content_views';
    }]
);

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js