aboutsummaryrefslogtreecommitdiffstats
path: root/templates/package/view.tmpl
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-04-02 11:53:37 +0200
committerGitHub <noreply@github.com>2023-04-02 17:53:37 +0800
commitfbd4eaceed801e7400ed04a9dadedaf3a25dccb9 (patch)
tree9c25636fbfa755702b77f781147a096e5eafd309 /templates/package/view.tmpl
parentf5593d08dc6d615e650fe5e954b300d1895212b7 (diff)
downloadgitea-fbd4eaceed801e7400ed04a9dadedaf3a25dccb9.tar.gz
gitea-fbd4eaceed801e7400ed04a9dadedaf3a25dccb9.zip
Display image size for multiarch container images (#23821)
Fixes #23771 Changes the display of different architectures for multiarch images to show the image size: ![grafik](https://user-images.githubusercontent.com/1666336/228781477-cc76c4d1-4728-434f-8a27-fc008790d924.png)
Diffstat (limited to 'templates/package/view.tmpl')
-rw-r--r--templates/package/view.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/package/view.tmpl b/templates/package/view.tmpl
index b2a2fb1e5d..beadcf5c1e 100644
--- a/templates/package/view.tmpl
+++ b/templates/package/view.tmpl
@@ -62,7 +62,9 @@
{{template "package/metadata/rubygems" .}}
{{template "package/metadata/swift" .}}
{{template "package/metadata/vagrant" .}}
+ {{if not (and (eq .PackageDescriptor.Package.Type "container") .PackageDescriptor.Metadata.Manifests)}}
<div class="item">{{svg "octicon-database" 16 "gt-mr-3"}} {{FileSize .PackageDescriptor.CalculateBlobSize}}</div>
+ {{end}}
</div>
{{if not (eq .PackageDescriptor.Package.Type "container")}}
<div class="ui divider"></div>