diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-12-17 11:58:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-17 11:58:27 +0800 |
commit | e98dd6ee5b0efb8e7a9f992fa35903cf5b2c1634 (patch) | |
tree | 447fd5c0387d2b71f19f4ffaaa0a1e22d918bb1b /templates/package | |
parent | 22c4599542ee3e10bcab4c9136467bbac8e90ba0 (diff) | |
download | gitea-e98dd6ee5b0efb8e7a9f992fa35903cf5b2c1634.tar.gz gitea-e98dd6ee5b0efb8e7a9f992fa35903cf5b2c1634.zip |
Backport 1.23 (#32868)
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'templates/package')
-rw-r--r-- | templates/package/content/container.tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/package/content/container.tmpl b/templates/package/content/container.tmpl index 207774bfef..04732d276a 100644 --- a/templates/package/content/container.tmpl +++ b/templates/package/content/container.tmpl @@ -36,9 +36,10 @@ </thead> <tbody> {{range .PackageDescriptor.Metadata.Manifests}} + {{/* "unknown/unknown" is attestation-manifest, so we should skip it */}} {{if ne .Platform "unknown/unknown"}} <tr> - <td><a href="{{$.PackageDescriptor.PackageWebLink}}/{{PathEscape .Digest}}">{{StringUtils.TrimPrefix .Digest "sha256:" | ShortSha}}</a></td> + <td><a class="tw-font-mono" href="{{$.PackageDescriptor.PackageWebLink}}/{{PathEscape .Digest}}">{{StringUtils.TrimPrefix .Digest "sha256:" | ShortSha}}</a></td> <td>{{.Platform}}</td> <td>{{FileSize .Size}}</td> </tr> |