From 46b4ea8e3e47ce6d39dd4fc3513b78a16a7fde15 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 17 Mar 2016 16:55:41 -0400 Subject: [PATCH] Fix display of images in new sec scan API Fixes #1297 --- static/directives/image-feature-view.html | 11 ++++++++--- static/directives/image-view-layer.html | 5 ++--- static/directives/image-vulnerability-view.html | 11 ++++++++--- static/js/services/image-metadata-service.js | 2 ++ 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/static/directives/image-feature-view.html b/static/directives/image-feature-view.html index 20864f6c4..f9162f287 100644 --- a/static/directives/image-feature-view.html +++ b/static/directives/image-feature-view.html @@ -146,10 +146,15 @@ - - + + + + + + + + - diff --git a/static/directives/image-view-layer.html b/static/directives/image-view-layer.html index f85e34964..0d0601b6d 100644 --- a/static/directives/image-view-layer.html +++ b/static/directives/image-view-layer.html @@ -4,9 +4,8 @@ {{ image.id.substr(0, 12) }} -
{{ image.comment }}
-
-
{{ image.command.join(' ') }}
+
+
{{ image.command.join(' ') }}
diff --git a/static/directives/image-vulnerability-view.html b/static/directives/image-vulnerability-view.html index 6fb89f6e2..140cc5e16 100644 --- a/static/directives/image-vulnerability-view.html +++ b/static/directives/image-vulnerability-view.html @@ -134,10 +134,15 @@ - - + + + + + + + + - diff --git a/static/js/services/image-metadata-service.js b/static/js/services/image-metadata-service.js index ac04ab7a1..4b7d251ed 100644 --- a/static/js/services/image-metadata-service.js +++ b/static/js/services/image-metadata-service.js @@ -31,6 +31,8 @@ angular.module('quay').factory('ImageMetadataService', ['UtilService', function( if (!image.__imageMap) { image.__imageMap = {}; + image.__imageMap[image.id] = image; + for (var i = 0; i < image.history.length; ++i) { var cimage = image.history[i]; image.__imageMap[cimage.id] = cimage;