From dd643f6acdafc834619b2b448a6adef3c895dac8 Mon Sep 17 00:00:00 2001 From: Sean Li Date: Fri, 10 Oct 2014 12:38:51 -0700 Subject: [PATCH] Display the right image for the app. --- .../client/views/dashboard/apps/dashboard-single-app.html | 2 +- .../views/dashboard/layouts/dashboard-apps-layout.html | 4 +++- meteor/collections/apps.js | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/meteor/client/views/dashboard/apps/dashboard-single-app.html b/meteor/client/views/dashboard/apps/dashboard-single-app.html index baa2df2470..f0e34d0991 100755 --- a/meteor/client/views/dashboard/apps/dashboard-single-app.html +++ b/meteor/client/views/dashboard/apps/dashboard-single-app.html @@ -19,7 +19,7 @@ {{/if}} {{/if}} {{name}} - {{image.meta.name}} + {{displayTags image.tags}}
{{#if $eq status 'READY'}} diff --git a/meteor/client/views/dashboard/layouts/dashboard-apps-layout.html b/meteor/client/views/dashboard/layouts/dashboard-apps-layout.html index 67465a1e9b..0ac0bd2745 100755 --- a/meteor/client/views/dashboard/layouts/dashboard-apps-layout.html +++ b/meteor/client/views/dashboard/layouts/dashboard-apps-layout.html @@ -16,7 +16,9 @@ {{/if}} - + {{#if image}} + + {{/if}} {{/if}} {{#if $eq status 'READY'}} diff --git a/meteor/collections/apps.js b/meteor/collections/apps.js index f59b617715..00cd62c731 100755 --- a/meteor/collections/apps.js +++ b/meteor/collections/apps.js @@ -24,7 +24,11 @@ Apps.allow({ Apps.helpers({ image: function () { - return Images.findOne(this.imageId); + if (this.docker && this.docker.Image) { + return Images.findOne({'docker.Id': this.docker.Image}); + } else { + return Images.findOne(this.imageId); + } }, hostUrl: function () { return this.name + '.kite';