Sha256: f29969c6ea4e951b10a7ca9fb445bf82ff2ad6f54253efed7ffe9966944e0672
Contents?: true
Size: 1.35 KB
Versions: 134
Compression:
Stored size: 1.35 KB
Contents
/** * @ngdoc object * @name Bastion.environments.controller:EnvironmentsController * * @requires $scope * @requires PathsService * @requires $location * @requires Organization * @requires CurrentOrganization * @requires Nutupane * @requires Environment * * @description * Provides the functionality for the environments path page. */ angular.module('Bastion.environments').controller('EnvironmentsController', ['$scope', 'PathsService', '$location', 'Organization', 'CurrentOrganization', 'Nutupane', 'Environment', function ($scope, PathsService, $location, Organization, CurrentOrganization, Nutupane, Environment) { var params = { 'organization_id': CurrentOrganization, 'search': $location.search().search || "", 'sort_by': 'name', 'sort_order': 'ASC', 'paged': true }; var nutupane = new Nutupane(Environment, params); $scope.table = nutupane.table; PathsService.getActualPaths().then(function (data) { $scope.library = data.library; $scope.paths = data.paths; $scope.loading = false; }); $scope.lastEnvironment = function (path) { return path.environments[path.environments.length - 1]; }; }] );
Version data entries
134 entries across 134 versions & 1 rubygems