forgejo/templates/package/content
hiifong 5c1983644e
Do not display attestation-manifest and use short sha256 instead of full sha256 (#32851)
Related: #24973

Before:

![image](https://github.com/user-attachments/assets/bca17900-5075-4d15-af7a-c71bf8979c04)

After:

![image](https://github.com/user-attachments/assets/c5a24e3b-763b-4463-80db-d4dbd89f7dc4)

Index:
```json
{
  "schemaVersion": 2,
  "mediaType": "application/vnd.oci.image.index.v1+json",
  "manifests": [
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:5967afffdfde104ca1459286a72346baaef8b70ac153325d7a6cd85c7734ac6e",
      "size": 672,
      "platform": {
        "architecture": "amd64",
        "os": "linux"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:f9abfcc55320f9ff1f38eeb7dbb4bea10b29c7febfa49ccd7aab9fa02403b9f0",
      "size": 672,
      "platform": {
        "architecture": "arm64",
        "os": "linux"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:d70ad19d00c19e40691045cbddc3e8a5a4454c31cc454d1132b13bcaf35b6d46",
      "size": 566,
      "annotations": {
        "vnd.docker.reference.digest": "sha256:5967afffdfde104ca1459286a72346baaef8b70ac153325d7a6cd85c7734ac6e",
        "vnd.docker.reference.type": "attestation-manifest"
      },
      "platform": {
        "architecture": "unknown",
        "os": "unknown"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:73bc233bf4eac96a404ce3e0430b698831a4ea7050c878d5f76d1d1f133751dd",
      "size": 566,
      "annotations": {
        "vnd.docker.reference.digest": "sha256:f9abfcc55320f9ff1f38eeb7dbb4bea10b29c7febfa49ccd7aab9fa02403b9f0",
        "vnd.docker.reference.type": "attestation-manifest"
      },
      "platform": {
        "architecture": "unknown",
        "os": "unknown"
      }
    }
  ]
}
```

---------

Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 276f43330cb86e2ce6bc5a902a43f02727e009e9)

Conflicts:
	templates/package/content/container.tmpl
  simplify to only skip unknown/unknown and not change the display
2024-12-22 08:46:38 +01:00
..
alpine.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
arch.tmpl cleanup package route 2024-12-09 09:11:22 +08:00
cargo.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
chef.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
composer.tmpl Extract and display readme and comments for Composer packages (#30927) 2024-06-16 13:42:59 +02:00
composer_dependencies.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
conan.tmpl Fix: Name conan remote forgejo 2024-07-12 14:05:43 +02:00
conda.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
container.tmpl Do not display attestation-manifest and use short sha256 instead of full sha256 (#32851) 2024-12-22 08:46:38 +01:00
cran.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
debian.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
generic.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
go.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
helm.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
maven.tmpl templates: Be more forgiving about missing package metadata 2024-05-10 12:07:24 +02:00
npm.tmpl Add support for npm bundleDependencies (#30751) 2024-05-05 08:24:01 +01:00
npm_dependencies.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
nuget.tmpl Some NuGet package enhancements 2024-04-15 20:45:14 +02:00
pub.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
pypi.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
rpm.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
rubygems.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
rubygems_dependencies.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
swift.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
vagrant.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00