mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
Update home page with dashboard partials
This commit is contained in:
parent
85a97e7080
commit
5ff3e2872c
7 changed files with 52 additions and 15 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
angular.module('dockerui', ['dockerui.services', 'dockerui.filters'])
|
||||
.config(['$routeProvider', function ($routeProvider) {
|
||||
$routeProvider.when('/', {templateUrl: 'partials/home.html', controller: 'DashboardController'});
|
||||
$routeProvider.when('/', {templateUrl: 'partials/dashboard.html', controller: 'DashboardController'});
|
||||
$routeProvider.when('/containers/', {templateUrl: 'partials/containers.html', controller: 'ContainersController'});
|
||||
$routeProvider.when('/containers/:id/', {templateUrl: 'partials/container.html', controller: 'ContainerController'});
|
||||
$routeProvider.when('/images/', {templateUrl: 'partials/images.html', controller: 'ImagesController'});
|
||||
|
|
|
@ -37,6 +37,16 @@ function DashboardController($scope, Container) {
|
|||
|
||||
}
|
||||
|
||||
function SideBarController($scope, Container, Settings) {
|
||||
$scope.template = 'partials/sidebar.html';
|
||||
$scope.containers = [];
|
||||
$scope.endpoint = Settings.endpoint;
|
||||
|
||||
Container.query({all: 0}, function(d) {
|
||||
$scope.containers = d;
|
||||
});
|
||||
}
|
||||
|
||||
function SettingsController($scope, Auth, System, Docker, Settings) {
|
||||
$scope.auth = {};
|
||||
$scope.info = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue