Display total blob size of a package version. (#20927)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
tokarchuk/v1.18
KN4CK3R 2 years ago committed by GitHub
parent 103b94f96e
commit 9e0c43777e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      templates/package/view.tmpl

@ -52,6 +52,7 @@
{{template "package/metadata/pub" .}} {{template "package/metadata/pub" .}}
{{template "package/metadata/pypi" .}} {{template "package/metadata/pypi" .}}
{{template "package/metadata/rubygems" .}} {{template "package/metadata/rubygems" .}}
<div class="item">{{svg "octicon-database" 16 "mr-3"}} {{FileSize .PackageDescriptor.CalculateBlobSize}}</div>
</div> </div>
{{if not (eq .PackageDescriptor.Package.Type "container")}} {{if not (eq .PackageDescriptor.Package.Type "container")}}
<div class="ui divider"></div> <div class="ui divider"></div>

Loading…
Cancel
Save