2015-02-13 12:57:23 +00:00
|
|
|
angular.module('info', [])
|
2015-08-25 05:59:54 +00:00
|
|
|
.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;
|
2014-11-29 04:19:24 +00:00
|
|
|
|
2015-08-25 05:59:54 +00:00
|
|
|
Docker.get({}, function (d) {
|
|
|
|
$scope.docker = d;
|
|
|
|
});
|
|
|
|
System.get({}, function (d) {
|
|
|
|
$scope.info = d;
|
|
|
|
});
|
|
|
|
}]);
|