From f32aadedfbc0d04b77bf198916fbe55f48add993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Fri, 13 Feb 2015 13:30:48 +0100 Subject: [PATCH 1/3] Add more information to the settings page Now shows all information we can get from the info object. Exceptions: Name and NEventsListener, those don't seem to work. --- app/components/settings/settings.html | 68 +++++++++++++++++++++++---- dist/dockerui.js | 68 +++++++++++++++++++++++---- dist/templates/app.js | 68 +++++++++++++++++++++++---- 3 files changed, 180 insertions(+), 24 deletions(-) diff --git a/app/components/settings/settings.html b/app/components/settings/settings.html index 83caa539f..7b70f70ff 100644 --- a/app/components/settings/settings.html +++ b/app/components/settings/settings.html @@ -25,25 +25,77 @@ {{ info.Debug }} - NFd: + CPUs: + {{ info.NCPU }} + + + Total Memory: + {{ info.MemTotal }}MB + + + Operating System: + {{ info.OperatingSystem }} + + + Kernel Version: + {{ info.KernelVersion }} + + + ID: + {{ info.ID }} + + + Labels: + {{ info.Labels }} + + + File Descriptors: {{ info.NFd }} - NGoroutines: + Goroutines: {{ info.NGoroutines }} - MemoryLimit: + Storage Driver: + {{ info.Driver }} + + + Storage Driver Status: + {{ info.DriverStatus }} + + + Execution Driver: + {{ info.ExecutionDriver }} + + + IPv4 Forwarding: + {{ info.IPv4Forwarding }} + + + Index Server Address: + {{ info.IndexServerAddress }} + + + Init Path: + {{ info.InitPath }} + + + Docker Root Directory: + {{ info.DockerRootDir }} + + + Init SHA1 + {{ info.InitSha1 }} + + + Memory Limit: {{ info.MemoryLimit }} - SwapLimit: + Swap Limit: {{ info.SwapLimit }} - - NFd: - {{ info.NFd }} - diff --git a/dist/dockerui.js b/dist/dockerui.js index a62bcaf8a..31efb1539 100644 --- a/dist/dockerui.js +++ b/dist/dockerui.js @@ -1512,26 +1512,78 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache " Debug:\n" + " {{ info.Debug }}\n" + " \n" + + " \n" + + " CPUs:\n" + + " {{ info.NCPU }}\n" + + " \n" + + " \n" + + " Total Memory:\n" + + " {{ info.MemTotal }}MB\n" + + " \n" + + " \n" + + " Operating System:\n" + + " {{ info.OperatingSystem }}\n" + + " \n" + + " \n" + + " Kernel Version:\n" + + " {{ info.KernelVersion }}\n" + + " \n" + + " \n" + + " ID:\n" + + " {{ info.ID }}\n" + + " \n" + + " \n" + + " Init SHA1\n" + + " {{ info.InitSha1 }}\n" + + " \n" + + " \n" + + " Labels:\n" + + " {{ info.Labels }}\n" + + " \n" + " \n" + - " NFd:\n" + + " File Descriptors:\n" + " {{ info.NFd }}\n" + " \n" + " \n" + - " NGoroutines:\n" + + " Goroutines:\n" + " {{ info.NGoroutines }}\n" + " \n" + + " \n" + + " Storage Driver:\n" + + " {{ info.Driver }}\n" + + " \n" + + " \n" + + " Storage Driver Status:\n" + + " {{ info.DriverStatus }}\n" + + " \n" + + " \n" + + " Execution Driver:\n" + + " {{ info.ExecutionDriver }}\n" + + " \n" + + " \n" + + " IPv4 Forwarding:\n" + + " {{ info.IPv4Forwarding }}\n" + + " \n" + + " \n" + + " Index Server Address:\n" + + " {{ info.IndexServerAddress }}\n" + + " \n" + + " \n" + + " Init Path:\n" + + " {{ info.InitPath }}\n" + + " \n" + + " \n" + + " Docker Root Directory:\n" + + " {{ info.DockerRootDir }}\n" + + " \n" + " \n" + - " MemoryLimit:\n" + + " Memory Limit:\n" + " {{ info.MemoryLimit }}\n" + " \n" + " \n" + - " SwapLimit:\n" + + " Swap Limit:\n" + " {{ info.SwapLimit }}\n" + " \n" + - " \n" + - " NFd:\n" + - " {{ info.NFd }}\n" + - " \n" + " \n" + " \n" + "\n" + diff --git a/dist/templates/app.js b/dist/templates/app.js index e1f9aacb5..e7ae28c62 100644 --- a/dist/templates/app.js +++ b/dist/templates/app.js @@ -501,26 +501,78 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache " Debug:\n" + " {{ info.Debug }}\n" + " \n" + + " \n" + + " CPUs:\n" + + " {{ info.NCPU }}\n" + + " \n" + + " \n" + + " Total Memory:\n" + + " {{ info.MemTotal }}MB\n" + + " \n" + + " \n" + + " Operating System:\n" + + " {{ info.OperatingSystem }}\n" + + " \n" + + " \n" + + " Kernel Version:\n" + + " {{ info.KernelVersion }}\n" + + " \n" + + " \n" + + " ID:\n" + + " {{ info.ID }}\n" + + " \n" + + " \n" + + " Init SHA1\n" + + " {{ info.InitSha1 }}\n" + + " \n" + + " \n" + + " Labels:\n" + + " {{ info.Labels }}\n" + + " \n" + " \n" + - " NFd:\n" + + " File Descriptors:\n" + " {{ info.NFd }}\n" + " \n" + " \n" + - " NGoroutines:\n" + + " Goroutines:\n" + " {{ info.NGoroutines }}\n" + " \n" + + " \n" + + " Storage Driver:\n" + + " {{ info.Driver }}\n" + + " \n" + + " \n" + + " Storage Driver Status:\n" + + " {{ info.DriverStatus }}\n" + + " \n" + + " \n" + + " Execution Driver:\n" + + " {{ info.ExecutionDriver }}\n" + + " \n" + + " \n" + + " IPv4 Forwarding:\n" + + " {{ info.IPv4Forwarding }}\n" + + " \n" + + " \n" + + " Index Server Address:\n" + + " {{ info.IndexServerAddress }}\n" + + " \n" + + " \n" + + " Init Path:\n" + + " {{ info.InitPath }}\n" + + " \n" + + " \n" + + " Docker Root Directory:\n" + + " {{ info.DockerRootDir }}\n" + + " \n" + " \n" + - " MemoryLimit:\n" + + " Memory Limit:\n" + " {{ info.MemoryLimit }}\n" + " \n" + " \n" + - " SwapLimit:\n" + + " Swap Limit:\n" + " {{ info.SwapLimit }}\n" + " \n" + - " \n" + - " NFd:\n" + - " {{ info.NFd }}\n" + - " \n" + " \n" + " \n" + "\n" + From 14d4397868ba543d47690131bf3d1fd906d29e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Fri, 13 Feb 2015 13:57:23 +0100 Subject: [PATCH 2/3] Rename settings page to info You can't change any settings in the settings page, so the title is missleading. --- app/app.js | 4 +- .../settings.html => info/info.html} | 0 .../infoController.js} | 4 +- app/components/masthead/masthead.html | 2 +- dist/dockerui.js | 164 +++++++++--------- dist/templates/app.js | 146 ++++++++-------- 6 files changed, 160 insertions(+), 160 deletions(-) rename app/components/{settings/settings.html => info/info.html} (100%) rename app/components/{settings/settingsController.js => info/infoController.js} (71%) diff --git a/app/app.js b/app/app.js index 7596fece0..3e0faba21 100644 --- a/app/app.js +++ b/app/app.js @@ -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 diff --git a/app/components/settings/settings.html b/app/components/info/info.html similarity index 100% rename from app/components/settings/settings.html rename to app/components/info/info.html diff --git a/app/components/settings/settingsController.js b/app/components/info/infoController.js similarity index 71% rename from app/components/settings/settingsController.js rename to app/components/info/infoController.js index 44f077c8e..1df5ca979 100644 --- a/app/components/settings/settingsController.js +++ b/app/components/info/infoController.js @@ -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 = {}; diff --git a/app/components/masthead/masthead.html b/app/components/masthead/masthead.html index 13029eded..d3a70783b 100644 --- a/app/components/masthead/masthead.html +++ b/app/components/masthead/masthead.html @@ -4,6 +4,6 @@
  • Dashboard
  • Containers
  • Images
  • -
  • Settings
  • +
  • Info
  • diff --git a/dist/dockerui.js b/dist/dockerui.js index 31efb1539..6ed775dbc 100644 --- a/dist/dockerui.js +++ b/dist/dockerui.js @@ -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", - "
    \n" + - "

    DockerUI

    \n" + - " \n" + - "
    \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", "
    \n" + "

    Docker Information

    \n" + "
    \n" + @@ -1512,34 +1498,30 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache " Debug:\n" + " {{ info.Debug }}\n" + " \n" + - " \n" + - " CPUs:\n" + - " {{ info.NCPU }}\n" + - " \n" + - " \n" + - " Total Memory:\n" + - " {{ info.MemTotal }}MB\n" + - " \n" + - " \n" + - " Operating System:\n" + - " {{ info.OperatingSystem }}\n" + - " \n" + - " \n" + - " Kernel Version:\n" + - " {{ info.KernelVersion }}\n" + - " \n" + - " \n" + - " ID:\n" + - " {{ info.ID }}\n" + - " \n" + - " \n" + - " Init SHA1\n" + - " {{ info.InitSha1 }}\n" + - " \n" + - " \n" + - " Labels:\n" + - " {{ info.Labels }}\n" + - " \n" + + " \n" + + " CPUs:\n" + + " {{ info.NCPU }}\n" + + " \n" + + " \n" + + " Total Memory:\n" + + " {{ info.MemTotal }}MB\n" + + " \n" + + " \n" + + " Operating System:\n" + + " {{ info.OperatingSystem }}\n" + + " \n" + + " \n" + + " Kernel Version:\n" + + " {{ info.KernelVersion }}\n" + + " \n" + + " \n" + + " ID:\n" + + " {{ info.ID }}\n" + + " \n" + + " \n" + + " Labels:\n" + + " {{ info.Labels }}\n" + + " \n" + " \n" + " File Descriptors:\n" + " {{ info.NFd }}\n" + @@ -1548,34 +1530,38 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache " Goroutines:\n" + " {{ info.NGoroutines }}\n" + " \n" + - " \n" + - " Storage Driver:\n" + - " {{ info.Driver }}\n" + - " \n" + - " \n" + - " Storage Driver Status:\n" + - " {{ info.DriverStatus }}\n" + - " \n" + - " \n" + - " Execution Driver:\n" + - " {{ info.ExecutionDriver }}\n" + - " \n" + - " \n" + - " IPv4 Forwarding:\n" + - " {{ info.IPv4Forwarding }}\n" + - " \n" + - " \n" + - " Index Server Address:\n" + - " {{ info.IndexServerAddress }}\n" + - " \n" + - " \n" + - " Init Path:\n" + - " {{ info.InitPath }}\n" + - " \n" + - " \n" + - " Docker Root Directory:\n" + - " {{ info.DockerRootDir }}\n" + - " \n" + + " \n" + + " Storage Driver:\n" + + " {{ info.Driver }}\n" + + " \n" + + " \n" + + " Storage Driver Status:\n" + + " {{ info.DriverStatus }}\n" + + " \n" + + " \n" + + " Execution Driver:\n" + + " {{ info.ExecutionDriver }}\n" + + " \n" + + " \n" + + " IPv4 Forwarding:\n" + + " {{ info.IPv4Forwarding }}\n" + + " \n" + + " \n" + + " Index Server Address:\n" + + " {{ info.IndexServerAddress }}\n" + + " \n" + + " \n" + + " Init Path:\n" + + " {{ info.InitPath }}\n" + + " \n" + + " \n" + + " Docker Root Directory:\n" + + " {{ info.DockerRootDir }}\n" + + " \n" + + " \n" + + " Init SHA1\n" + + " {{ info.InitSha1 }}\n" + + " \n" + " \n" + " Memory Limit:\n" + " {{ info.MemoryLimit }}\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", + "
    \n" + + "

    DockerUI

    \n" + + " \n" + + "
    \n" + + ""); +}]); + angular.module("app/components/sidebar/sidebar.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("app/components/sidebar/sidebar.html", "
    \n" + diff --git a/dist/templates/app.js b/dist/templates/app.js index e7ae28c62..6d5a89593 100644 --- a/dist/templates/app.js +++ b/dist/templates/app.js @@ -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", - "
    \n" + - "

    DockerUI

    \n" + - " \n" + - "
    \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", "
    \n" + "

    Docker Information

    \n" + "
    \n" + @@ -501,34 +487,30 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache " Debug:\n" + " {{ info.Debug }}\n" + " \n" + - " \n" + - " CPUs:\n" + - " {{ info.NCPU }}\n" + - " \n" + - " \n" + - " Total Memory:\n" + - " {{ info.MemTotal }}MB\n" + - " \n" + - " \n" + - " Operating System:\n" + - " {{ info.OperatingSystem }}\n" + - " \n" + - " \n" + - " Kernel Version:\n" + - " {{ info.KernelVersion }}\n" + - " \n" + - " \n" + - " ID:\n" + - " {{ info.ID }}\n" + - " \n" + - " \n" + - " Init SHA1\n" + - " {{ info.InitSha1 }}\n" + - " \n" + - " \n" + - " Labels:\n" + - " {{ info.Labels }}\n" + - " \n" + + " \n" + + " CPUs:\n" + + " {{ info.NCPU }}\n" + + " \n" + + " \n" + + " Total Memory:\n" + + " {{ info.MemTotal }}MB\n" + + " \n" + + " \n" + + " Operating System:\n" + + " {{ info.OperatingSystem }}\n" + + " \n" + + " \n" + + " Kernel Version:\n" + + " {{ info.KernelVersion }}\n" + + " \n" + + " \n" + + " ID:\n" + + " {{ info.ID }}\n" + + " \n" + + " \n" + + " Labels:\n" + + " {{ info.Labels }}\n" + + " \n" + " \n" + " File Descriptors:\n" + " {{ info.NFd }}\n" + @@ -537,34 +519,38 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache " Goroutines:\n" + " {{ info.NGoroutines }}\n" + " \n" + - " \n" + - " Storage Driver:\n" + - " {{ info.Driver }}\n" + - " \n" + - " \n" + - " Storage Driver Status:\n" + - " {{ info.DriverStatus }}\n" + - " \n" + - " \n" + - " Execution Driver:\n" + - " {{ info.ExecutionDriver }}\n" + - " \n" + - " \n" + - " IPv4 Forwarding:\n" + - " {{ info.IPv4Forwarding }}\n" + - " \n" + - " \n" + - " Index Server Address:\n" + - " {{ info.IndexServerAddress }}\n" + - " \n" + - " \n" + - " Init Path:\n" + - " {{ info.InitPath }}\n" + - " \n" + - " \n" + - " Docker Root Directory:\n" + - " {{ info.DockerRootDir }}\n" + - " \n" + + " \n" + + " Storage Driver:\n" + + " {{ info.Driver }}\n" + + " \n" + + " \n" + + " Storage Driver Status:\n" + + " {{ info.DriverStatus }}\n" + + " \n" + + " \n" + + " Execution Driver:\n" + + " {{ info.ExecutionDriver }}\n" + + " \n" + + " \n" + + " IPv4 Forwarding:\n" + + " {{ info.IPv4Forwarding }}\n" + + " \n" + + " \n" + + " Index Server Address:\n" + + " {{ info.IndexServerAddress }}\n" + + " \n" + + " \n" + + " Init Path:\n" + + " {{ info.InitPath }}\n" + + " \n" + + " \n" + + " Docker Root Directory:\n" + + " {{ info.DockerRootDir }}\n" + + " \n" + + " \n" + + " Init SHA1\n" + + " {{ info.InitSha1 }}\n" + + " \n" + " \n" + " Memory Limit:\n" + " {{ info.MemoryLimit }}\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", + "
    \n" + + "

    DockerUI

    \n" + + " \n" + + "
    \n" + + ""); +}]); + angular.module("app/components/sidebar/sidebar.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("app/components/sidebar/sidebar.html", "
    \n" + From ad6e0acab102ee3ecbb71fb891cd56736118d73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Fri, 13 Feb 2015 21:28:19 +0100 Subject: [PATCH 3/3] Correctly humanize RAM size on info page --- app/components/info/info.html | 2 +- dist/dockerui.js | 2 +- dist/templates/app.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/info/info.html b/app/components/info/info.html index 7b70f70ff..9a4b23841 100644 --- a/app/components/info/info.html +++ b/app/components/info/info.html @@ -30,7 +30,7 @@ Total Memory: - {{ info.MemTotal }}MB + {{ info.MemTotal|humansize }} Operating System: diff --git a/dist/dockerui.js b/dist/dockerui.js index 6ed775dbc..52db85c48 100644 --- a/dist/dockerui.js +++ b/dist/dockerui.js @@ -1504,7 +1504,7 @@ angular.module("app/components/info/info.html", []).run(["$templateCache", funct " \n" + " \n" + " Total Memory:\n" + - " {{ info.MemTotal }}MB\n" + + " {{ info.MemTotal|humansize }}\n" + " \n" + " \n" + " Operating System:\n" + diff --git a/dist/templates/app.js b/dist/templates/app.js index 6d5a89593..94116292f 100644 --- a/dist/templates/app.js +++ b/dist/templates/app.js @@ -493,7 +493,7 @@ angular.module("app/components/info/info.html", []).run(["$templateCache", funct " \n" + " \n" + " Total Memory:\n" + - " {{ info.MemTotal }}MB\n" + + " {{ info.MemTotal|humansize }}\n" + " \n" + " \n" + " Operating System:\n" +