From 356271d2ce3e0cd30c3a702139b45a60b065c547 Mon Sep 17 00:00:00 2001 From: munishchouhan Date: Mon, 3 Feb 2025 21:51:19 +0100 Subject: [PATCH] link moved to digest Signed-off-by: munishchouhan --- .../wave/controller/ViewController.groovy | 3 +- .../resources/io/seqera/wave/inspect-view.hbs | 106 ++++++++++++++---- 2 files changed, 84 insertions(+), 25 deletions(-) diff --git a/src/main/groovy/io/seqera/wave/controller/ViewController.groovy b/src/main/groovy/io/seqera/wave/controller/ViewController.groovy index c11f5e818..d27d331df 100644 --- a/src/main/groovy/io/seqera/wave/controller/ViewController.groovy +++ b/src/main/groovy/io/seqera/wave/controller/ViewController.groovy @@ -410,8 +410,9 @@ class ViewController { binding.imageName = image binding.schemaVersion = spec.index.schemaVersion binding.mediaType = spec.index.mediaType - binding.manifests = spec.index.manifests + def manifests = spec.index.manifests .findAll{ ContainerPlatform.ALLOWED_ARCH.contains(it.platform.architecture)} + binding.manifests = JacksonHelper.toJson(manifests) } } catch (Exception e){ diff --git a/src/main/resources/io/seqera/wave/inspect-view.hbs b/src/main/resources/io/seqera/wave/inspect-view.hbs index c7462da6f..dfcc6b8ff 100644 --- a/src/main/resources/io/seqera/wave/inspect-view.hbs +++ b/src/main/resources/io/seqera/wave/inspect-view.hbs @@ -138,19 +138,10 @@ {{mediaType}} - Manifest - - - + Manifests +
+ {{else}}

Container Specification

@@ -183,19 +174,75 @@
+ {{/if}} - - {{/if}} + + +