diff --git a/bridges/DockerHubBridge.php b/bridges/DockerHubBridge.php
index f0baa37f..574e3964 100644
--- a/bridges/DockerHubBridge.php
+++ b/bridges/DockerHubBridge.php
@@ -93,7 +93,7 @@ class DockerHubBridge extends BridgeAbstract
Last pushed
{$lastPushed}
Images
-{$this->getImages($result)}
+{$this->getImagesTable($result)}
EOD;
$this->items[] = $item;
@@ -187,25 +187,37 @@ EOD;
return $url . '/tags/?&name=' . $name;
}
- private function getImages($result)
+ private function getImagesTable($result)
{
- $html = <<Digest | OS/architecture |
-EOD;
+ $data = '';
foreach ($result->images as $image) {
$layersUrl = $this->getLayerUrl($result->name, $image->digest);
$id = $this->getShortDigestId($image->digest);
-
- $html .= <<
- {$id} |
- {$image->os}/{$image->architecture} |
-
+ $size = format_bytes($image->size);
+ $data .= <<
+ {$id} |
+ {$image->os}/{$image->architecture} |
+ {$size} |
+
EOD;
}
- return $html . '';
+ return <<
+
+
+ Digest |
+ OS/architecture |
+ Compressed Size |
+
+
+
+ {$data}
+
+
+EOD;
}
private function getShortDigestId($digest)