Change image chart sizes
parent
de18a308c2
commit
3643525126
|
@ -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 = {};
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<h3>Running Containers</h3>
|
||||
<ul>
|
||||
<li ng-repeat="container in containers|orderBy:predicate">
|
||||
<a href="/#/containers/{{ container.Id }}/">{{ container.Command }}</a>
|
||||
<a href="/#/containers/{{ container.Id }}/">{{ container.Image }}</a>
|
||||
<span class="label label-{{ container.Status|statusbadge }}">{{ container.Status }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<div class="detail">
|
||||
|
||||
<h4>Image: {{ image.id }}</h4>
|
||||
<h4>Image: {{ tag }}</h4>
|
||||
|
||||
<div class="btn-group detail">
|
||||
<button class="btn btn-success" ng-click="create()">Create</button>
|
||||
|
|
Loading…
Reference in New Issue