From 3643525126e4eead7469535934cf657837448444 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Mon, 2 Sep 2013 17:08:06 -0700 Subject: [PATCH] Change image chart sizes --- js/controllers.js | 7 +++++-- partials/dashboard.html | 2 +- partials/image.html | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/js/controllers.js b/js/controllers.js index 8faddc9ec..724015180 100644 --- a/js/controllers.js +++ b/js/controllers.js @@ -304,8 +304,11 @@ function ImageController($scope, $q, $routeParams, $location, Image, Container, Image.get({id: $routeParams.id}, function(d) { $scope.image = d; - if ($routeParams.tag) { - var promise = getContainersFromImage($q, Container, $routeParams.tag); + $scope.tag = d.id; + var t = $routeParams.tag; + if (t && t !== ":") { + $scope.tag = t; + var promise = getContainersFromImage($q, Container, t); promise.then(function(containers) { var map = {}; diff --git a/partials/dashboard.html b/partials/dashboard.html index 1506365ad..b06dfd224 100644 --- a/partials/dashboard.html +++ b/partials/dashboard.html @@ -16,7 +16,7 @@

Running Containers

diff --git a/partials/image.html b/partials/image.html index 28bfb4ae1..4d9e43efe 100644 --- a/partials/image.html +++ b/partials/image.html @@ -6,7 +6,7 @@
-

Image: {{ image.id }}

+

Image: {{ tag }}