mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
Add bottom status bar with version information
This commit is contained in:
parent
ac8f84773e
commit
20f67f9f4a
6 changed files with 24 additions and 12 deletions
|
@ -12,4 +12,5 @@ angular.module('dockerui', ['dockerui.services', 'dockerui.filters'])
|
|||
}])
|
||||
// This is your docker url that the api will use to make requests
|
||||
.constant('DOCKER_ENDPOINT', 'http://192.168.1.9:4243\:4243')
|
||||
.constant('DOCKER_API_VERSION', '/v1.1');
|
||||
.constant('UI_VERSION', 'v0.1')
|
||||
.constant('DOCKER_API_VERSION', 'v1.1');
|
||||
|
|
|
@ -37,6 +37,13 @@ function DashboardController($scope, Container) {
|
|||
|
||||
}
|
||||
|
||||
function StatusBarController($scope, Settings) {
|
||||
$scope.template = 'partials/statusbar.html';
|
||||
|
||||
$scope.uiVersion = Settings.uiVersion;
|
||||
$scope.apiVersion = Settings.version;
|
||||
}
|
||||
|
||||
function SideBarController($scope, Container, Settings) {
|
||||
$scope.template = 'partials/sidebar.html';
|
||||
$scope.containers = [];
|
||||
|
@ -65,7 +72,7 @@ function SettingsController($scope, Auth, System, Docker, Settings) {
|
|||
Auth.update(
|
||||
{username: $scope.auth.username, email: $scope.auth.email, password: $scope.auth.password}, function(d) {
|
||||
console.log(d);
|
||||
setSuccessfulResponse($scope, 'Auto information updated.', '#response');
|
||||
setSuccessfulResponse($scope, 'Auth information updated.', '#response');
|
||||
}, function(e) {
|
||||
console.log(e);
|
||||
setFailedResponse($scope, e.data, '#response');
|
||||
|
|
|
@ -53,11 +53,12 @@ angular.module('dockerui.services', ['ngResource'])
|
|||
get: {method: 'GET'}
|
||||
});
|
||||
})
|
||||
.factory('Settings', function(DOCKER_ENDPOINT, DOCKER_API_VERSION) {
|
||||
.factory('Settings', function(DOCKER_ENDPOINT, DOCKER_API_VERSION, UI_VERSION) {
|
||||
return {
|
||||
displayAll: false,
|
||||
endpoint: DOCKER_ENDPOINT,
|
||||
version: DOCKER_API_VERSION,
|
||||
url: DOCKER_ENDPOINT + DOCKER_API_VERSION
|
||||
url: DOCKER_ENDPOINT + '/' + DOCKER_API_VERSION,
|
||||
uiVersion: UI_VERSION
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue