Sha256: 81ec84542fdf22921171ab5ee0acad58257ad88543380519417397bc4687effd

Contents?: true

Size: 1.51 KB

Versions: 22

Compression:

Stored size: 1.51 KB

Contents

(function () {

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

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

        // Labels so breadcrumb strings can be translated
        $scope.label = translate('Content Views');

        contentViewsNutupane.primaryOnly = 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',
        'translate'
    ];

})();

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
katello-4.14.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js