Sha256: 2dee2d5964d6ad6a26e05eb79d4c44e8408ba0e8e01f5bc0c0099c490cf17b6d

Contents?: true

Size: 1.08 KB

Versions: 22

Compression:

Stored size: 1.08 KB

Contents

(function () {
    'use strict';

    /**
     * @ngdoc controller
     * @name  Bastion.files.controller:FilesController
     *
     * @description
     *   Handles fetching files and populating Nutupane based on the current
     *   ui-router state.
     *
     * @requires translate
     *
     */
    function FilesController($scope, Nutupane, File, CurrentOrganization, translate) {
        var nutupane;

        var params = {
            'organization_id': CurrentOrganization,
            'sort_by': 'name',
            'sort_order': 'ASC'
        };

        nutupane = new Nutupane(File, params);
        $scope.controllerName = 'katello_files';

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

        nutupane.primaryOnly = true;

        $scope.table = nutupane.table;
        $scope.controllerName = 'katello_files';
    }

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

    FilesController.$inject = ['$scope', 'Nutupane', 'File', '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/files.controller.js
katello-4.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js