mirror of https://github.com/portainer/portainer
Rename settings page to info
You can't change any settings in the settings page, so the title is missleading.pull/2/head
parent
f32aadedfb
commit
14d4397868
|
@ -1,4 +1,4 @@
|
|||
angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder', 'containerLogs'])
|
||||
angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'info', 'builder', 'containerLogs'])
|
||||
.config(['$routeProvider', function ($routeProvider) {
|
||||
'use strict';
|
||||
$routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'});
|
||||
|
@ -7,7 +7,7 @@ angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services'
|
|||
$routeProvider.when('/containers/:id/logs/', {templateUrl: 'app/components/containerLogs/containerlogs.html', controller: 'ContainerLogsController'});
|
||||
$routeProvider.when('/images/', {templateUrl: 'app/components/images/images.html', controller: 'ImagesController'});
|
||||
$routeProvider.when('/images/:id/', {templateUrl: 'app/components/image/image.html', controller: 'ImageController'});
|
||||
$routeProvider.when('/settings', {templateUrl: 'app/components/settings/settings.html', controller: 'SettingsController'});
|
||||
$routeProvider.when('/info', {templateUrl: 'app/components/info/info.html', controller: 'InfoController'});
|
||||
$routeProvider.otherwise({redirectTo: '/'});
|
||||
}])
|
||||
// This is your docker url that the api will use to make requests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
angular.module('settings', [])
|
||||
.controller('SettingsController', ['$scope', 'System', 'Docker', 'Settings', 'Messages',
|
||||
angular.module('info', [])
|
||||
.controller('InfoController', ['$scope', 'System', 'Docker', 'Settings', 'Messages',
|
||||
function($scope, System, Docker, Settings, Messages) {
|
||||
$scope.info = {};
|
||||
$scope.docker = {};
|
|
@ -4,6 +4,6 @@
|
|||
<li><a href="#">Dashboard</a></li>
|
||||
<li><a href="#/containers/">Containers</a></li>
|
||||
<li><a href="#/images/">Images</a></li>
|
||||
<li><a href="#/settings/">Settings</a></li>
|
||||
<li><a href="#/info/">Info</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Copyright (c) 2015 Michael Crosby & Kevan Ahlquist;
|
||||
* Licensed MIT
|
||||
*/
|
||||
angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder', 'containerLogs'])
|
||||
angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'info', 'builder', 'containerLogs'])
|
||||
.config(['$routeProvider', function ($routeProvider) {
|
||||
'use strict';
|
||||
$routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'});
|
||||
|
@ -12,7 +12,7 @@ angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services'
|
|||
$routeProvider.when('/containers/:id/logs/', {templateUrl: 'app/components/containerLogs/containerlogs.html', controller: 'ContainerLogsController'});
|
||||
$routeProvider.when('/images/', {templateUrl: 'app/components/images/images.html', controller: 'ImagesController'});
|
||||
$routeProvider.when('/images/:id/', {templateUrl: 'app/components/image/image.html', controller: 'ImageController'});
|
||||
$routeProvider.when('/settings', {templateUrl: 'app/components/settings/settings.html', controller: 'SettingsController'});
|
||||
$routeProvider.when('/info', {templateUrl: 'app/components/info/info.html', controller: 'InfoController'});
|
||||
$routeProvider.otherwise({redirectTo: '/'});
|
||||
}])
|
||||
// This is your docker url that the api will use to make requests
|
||||
|
@ -502,13 +502,8 @@ function($scope, Image, ViewSpinner, Messages) {
|
|||
});
|
||||
}]);
|
||||
|
||||
angular.module('masthead', [])
|
||||
.controller('MastheadController', ['$scope', function($scope) {
|
||||
$scope.template = 'app/components/masthead/masthead.html';
|
||||
}]);
|
||||
|
||||
angular.module('settings', [])
|
||||
.controller('SettingsController', ['$scope', 'System', 'Docker', 'Settings', 'Messages',
|
||||
angular.module('info', [])
|
||||
.controller('InfoController', ['$scope', 'System', 'Docker', 'Settings', 'Messages',
|
||||
function($scope, System, Docker, Settings, Messages) {
|
||||
$scope.info = {};
|
||||
$scope.docker = {};
|
||||
|
@ -519,6 +514,11 @@ function($scope, System, Docker, Settings, Messages) {
|
|||
System.get({}, function(d) { $scope.info = d; });
|
||||
}]);
|
||||
|
||||
angular.module('masthead', [])
|
||||
.controller('MastheadController', ['$scope', function($scope) {
|
||||
$scope.template = 'app/components/masthead/masthead.html';
|
||||
}]);
|
||||
|
||||
angular.module('sidebar', [])
|
||||
.controller('SideBarController', ['$scope', 'Container', 'Settings',
|
||||
function($scope, Container, Settings) {
|
||||
|
@ -1009,7 +1009,7 @@ function ContainerViewModel(data) {
|
|||
this.Names = data.Names;
|
||||
}
|
||||
|
||||
angular.module('dockerui.templates', ['app/components/builder/builder.html', 'app/components/container/container.html', 'app/components/containerLogs/containerlogs.html', 'app/components/containers/containers.html', 'app/components/dashboard/dashboard.html', 'app/components/footer/statusbar.html', 'app/components/image/image.html', 'app/components/images/images.html', 'app/components/masthead/masthead.html', 'app/components/settings/settings.html', 'app/components/sidebar/sidebar.html', 'app/components/startContainer/startcontainer.html']);
|
||||
angular.module('dockerui.templates', ['app/components/builder/builder.html', 'app/components/container/container.html', 'app/components/containerLogs/containerlogs.html', 'app/components/containers/containers.html', 'app/components/dashboard/dashboard.html', 'app/components/footer/statusbar.html', 'app/components/image/image.html', 'app/components/images/images.html', 'app/components/info/info.html', 'app/components/masthead/masthead.html', 'app/components/sidebar/sidebar.html', 'app/components/startContainer/startcontainer.html']);
|
||||
|
||||
angular.module("app/components/builder/builder.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/builder/builder.html",
|
||||
|
@ -1470,22 +1470,8 @@ angular.module("app/components/images/images.html", []).run(["$templateCache", f
|
|||
"");
|
||||
}]);
|
||||
|
||||
angular.module("app/components/masthead/masthead.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/masthead/masthead.html",
|
||||
" <div class=\"masthead\">\n" +
|
||||
" <h3 class=\"text-muted\">DockerUI</h3>\n" +
|
||||
" <ul class=\"nav well\">\n" +
|
||||
" <li><a href=\"#\">Dashboard</a></li>\n" +
|
||||
" <li><a href=\"#/containers/\">Containers</a></li>\n" +
|
||||
" <li><a href=\"#/images/\">Images</a></li>\n" +
|
||||
" <li><a href=\"#/settings/\">Settings</a></li>\n" +
|
||||
" </ul>\n" +
|
||||
" </div>\n" +
|
||||
"");
|
||||
}]);
|
||||
|
||||
angular.module("app/components/settings/settings.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/settings/settings.html",
|
||||
angular.module("app/components/info/info.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/info/info.html",
|
||||
"<div class=\"detail\">\n" +
|
||||
" <h2>Docker Information</h2>\n" +
|
||||
" <div>\n" +
|
||||
|
@ -1533,10 +1519,6 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache
|
|||
" <td>{{ info.ID }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
" <tr>\n" +
|
||||
" <td>Init SHA1</td>\n" +
|
||||
" <td>{{ info.InitSha1 }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
" <tr>\n" +
|
||||
" <td>Labels:</td>\n" +
|
||||
" <td>{{ info.Labels }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
|
@ -1577,6 +1559,10 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache
|
|||
" <td>{{ info.DockerRootDir }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
" <tr>\n" +
|
||||
" <td>Init SHA1</td>\n" +
|
||||
" <td>{{ info.InitSha1 }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
" <tr>\n" +
|
||||
" <td>Memory Limit:</td>\n" +
|
||||
" <td>{{ info.MemoryLimit }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
|
@ -1590,6 +1576,20 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache
|
|||
"");
|
||||
}]);
|
||||
|
||||
angular.module("app/components/masthead/masthead.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/masthead/masthead.html",
|
||||
" <div class=\"masthead\">\n" +
|
||||
" <h3 class=\"text-muted\">DockerUI</h3>\n" +
|
||||
" <ul class=\"nav well\">\n" +
|
||||
" <li><a href=\"#\">Dashboard</a></li>\n" +
|
||||
" <li><a href=\"#/containers/\">Containers</a></li>\n" +
|
||||
" <li><a href=\"#/images/\">Images</a></li>\n" +
|
||||
" <li><a href=\"#/info/\">Info</a></li>\n" +
|
||||
" </ul>\n" +
|
||||
" </div>\n" +
|
||||
"");
|
||||
}]);
|
||||
|
||||
angular.module("app/components/sidebar/sidebar.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/sidebar/sidebar.html",
|
||||
"<div class=\"well\">\n" +
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
angular.module('dockerui.templates', ['app/components/builder/builder.html', 'app/components/container/container.html', 'app/components/containerLogs/containerlogs.html', 'app/components/containers/containers.html', 'app/components/dashboard/dashboard.html', 'app/components/footer/statusbar.html', 'app/components/image/image.html', 'app/components/images/images.html', 'app/components/masthead/masthead.html', 'app/components/settings/settings.html', 'app/components/sidebar/sidebar.html', 'app/components/startContainer/startcontainer.html']);
|
||||
angular.module('dockerui.templates', ['app/components/builder/builder.html', 'app/components/container/container.html', 'app/components/containerLogs/containerlogs.html', 'app/components/containers/containers.html', 'app/components/dashboard/dashboard.html', 'app/components/footer/statusbar.html', 'app/components/image/image.html', 'app/components/images/images.html', 'app/components/info/info.html', 'app/components/masthead/masthead.html', 'app/components/sidebar/sidebar.html', 'app/components/startContainer/startcontainer.html']);
|
||||
|
||||
angular.module("app/components/builder/builder.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/builder/builder.html",
|
||||
|
@ -459,22 +459,8 @@ angular.module("app/components/images/images.html", []).run(["$templateCache", f
|
|||
"");
|
||||
}]);
|
||||
|
||||
angular.module("app/components/masthead/masthead.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/masthead/masthead.html",
|
||||
" <div class=\"masthead\">\n" +
|
||||
" <h3 class=\"text-muted\">DockerUI</h3>\n" +
|
||||
" <ul class=\"nav well\">\n" +
|
||||
" <li><a href=\"#\">Dashboard</a></li>\n" +
|
||||
" <li><a href=\"#/containers/\">Containers</a></li>\n" +
|
||||
" <li><a href=\"#/images/\">Images</a></li>\n" +
|
||||
" <li><a href=\"#/settings/\">Settings</a></li>\n" +
|
||||
" </ul>\n" +
|
||||
" </div>\n" +
|
||||
"");
|
||||
}]);
|
||||
|
||||
angular.module("app/components/settings/settings.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/settings/settings.html",
|
||||
angular.module("app/components/info/info.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/info/info.html",
|
||||
"<div class=\"detail\">\n" +
|
||||
" <h2>Docker Information</h2>\n" +
|
||||
" <div>\n" +
|
||||
|
@ -522,10 +508,6 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache
|
|||
" <td>{{ info.ID }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
" <tr>\n" +
|
||||
" <td>Init SHA1</td>\n" +
|
||||
" <td>{{ info.InitSha1 }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
" <tr>\n" +
|
||||
" <td>Labels:</td>\n" +
|
||||
" <td>{{ info.Labels }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
|
@ -566,6 +548,10 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache
|
|||
" <td>{{ info.DockerRootDir }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
" <tr>\n" +
|
||||
" <td>Init SHA1</td>\n" +
|
||||
" <td>{{ info.InitSha1 }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
" <tr>\n" +
|
||||
" <td>Memory Limit:</td>\n" +
|
||||
" <td>{{ info.MemoryLimit }}</td>\n" +
|
||||
" </tr>\n" +
|
||||
|
@ -579,6 +565,20 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache
|
|||
"");
|
||||
}]);
|
||||
|
||||
angular.module("app/components/masthead/masthead.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/masthead/masthead.html",
|
||||
" <div class=\"masthead\">\n" +
|
||||
" <h3 class=\"text-muted\">DockerUI</h3>\n" +
|
||||
" <ul class=\"nav well\">\n" +
|
||||
" <li><a href=\"#\">Dashboard</a></li>\n" +
|
||||
" <li><a href=\"#/containers/\">Containers</a></li>\n" +
|
||||
" <li><a href=\"#/images/\">Images</a></li>\n" +
|
||||
" <li><a href=\"#/info/\">Info</a></li>\n" +
|
||||
" </ul>\n" +
|
||||
" </div>\n" +
|
||||
"");
|
||||
}]);
|
||||
|
||||
angular.module("app/components/sidebar/sidebar.html", []).run(["$templateCache", function($templateCache) {
|
||||
$templateCache.put("app/components/sidebar/sidebar.html",
|
||||
"<div class=\"well\">\n" +
|
||||
|
|
Loading…
Reference in New Issue