Sha256: 0ba617af3432e669af8e42346eef2c0599a03d8dec6d72b01cd7bc38fe601f4c

Contents?: true

Size: 1.09 KB

Versions: 20

Compression:

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

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

        $scope.table = nutupane.table;
        $scope.removeRow = nutupane.removeRow;
        $scope.controllerName = 'katello_content_views';

        $scope.table.closeItem = function () {
            $scope.transitionTo('content-views.index');
        };

    }]
);

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-3.2.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.2.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.2.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.2.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.2.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.2.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.1.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.1.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.0.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.0.0.rc7 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.0.0.rc5 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.0.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.0.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.0.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js
katello-3.0.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js