mirror of https://github.com/portainer/portainer
16 lines
539 B
JavaScript
16 lines
539 B
JavaScript
angular.module('info', [])
|
|
.controller('InfoController', ['$scope', 'System', 'Docker', 'Settings', 'Messages',
|
|
function ($scope, System, Docker, Settings, Messages) {
|
|
$scope.info = {};
|
|
$scope.docker = {};
|
|
$scope.endpoint = Settings.endpoint;
|
|
$scope.apiVersion = Settings.version;
|
|
|
|
Docker.get({}, function (d) {
|
|
$scope.docker = d;
|
|
});
|
|
System.get({}, function (d) {
|
|
$scope.info = d;
|
|
});
|
|
}]);
|