Sha256: f7aba4b0fe077af505fff30ab136cef419686124a4b1242f4b6afba67298d5f1

Contents?: true

Size: 1.29 KB

Versions: 91

Compression:

Stored size: 1.29 KB

Contents

(function () {

    /**
     * @ngdoc object
     * @name  Bastion.files.controller:FileContentViewsController
     *
     * @description
     *   Provides the functionality for the files details contentViews page.
     */
    function FileContentViewsController($scope, Nutupane, ContentViewVersion, CurrentOrganization) {
        var contentViewsNutupane,
            params = {
                'file_id': $scope.$stateParams.fileId,
                'organization_id': CurrentOrganization
            };

        contentViewsNutupane = new Nutupane(ContentViewVersion, params);
        $scope.controllerName = 'katello_content_views';
        contentViewsNutupane.masterOnly = true;
        contentViewsNutupane.setSearchKey('contentViewsSearch');

        $scope.table = contentViewsNutupane.table;

        $scope.environmentNames = function (environments) {
            var names = _.map(environments, function (environment) {
                return environment.name;
            });

            return names.join(',');
        };
    }

    angular
        .module('Bastion.files')
        .controller('FileContentViewsController', FileContentViewsController);

    FileContentViewsController.$inject = [
        '$scope',
        'Nutupane',
        'ContentViewVersion',
        'CurrentOrganization'
    ];

})();

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
katello-3.16.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.1.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.17.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0.rc5.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0.rc5 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0.rc4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.15.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.15.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0.rc3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.15.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.15.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.16.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-3.15.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js