Skip to content

Commit

Permalink
Merge branch 'master' into 789-capture-wave-metrics-by-container-arch…
Browse files Browse the repository at this point in the history
…itecture
  • Loading branch information
munishchouhan authored Feb 4, 2025
2 parents 4f59a5a + 242822f commit 9cdef57
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/resources/io/seqera/wave/inspect-view.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@
{{else if schemaVersion}}
<h3>Index Specification</h3>
<table>
<tr>
<td>Image Name</td>
<td>{{imageName}}</td>
</tr>
<tr>
<td>Digest</td>
<td>{{digest}}</td>
Expand Down Expand Up @@ -219,9 +223,9 @@ function createNestedTree(data, serverUrl, imageName) {
if (key === "digest") {
const link = document.createElement("a");
link.href = `${serverUrl}/view/inspect?image=${imageName}@${value}&platform=${data.platform.architecture}`;
const name = imageName.split(':')[0];
link.href = `${serverUrl}/view/inspect?image=${name}@${value}&platform=${data.platform.architecture}`;
link.textContent = `${value}`;
li.textContent = `${key}: `;
li.appendChild(link);
} else if (typeof value === "object" && value !== null) {
Expand All @@ -233,6 +237,7 @@ function createNestedTree(data, serverUrl, imageName) {
details.appendChild(createNestedTree(value, serverUrl, imageName));
li.appendChild(details);
setTimeout(() => summary.click(), 10);
} else {
li.textContent = `${key}: ${value}`;
}
Expand Down

0 comments on commit 9cdef57

Please sign in to comment.