You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/templates
hiifong 276f43330c
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>
2 months ago
..
eval Use a general Eval function for expressions in templates. (#23927) 2 years ago
scopedtmpl Replace `interface{}` with `any` (#25686) 2 years ago
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Replace `util.SliceXxx` with `slices.Xxx` (#26958) 1 year ago
dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
helper.go Refactor issue filter (labels, poster, assignee) (#32771) 2 months ago
helper_test.go Refactor markup render system (#32533) 2 months ago
htmlrenderer.go Enable more `revive` linter rules (#30608) 9 months ago
htmlrenderer_test.go Show friendly 500 error page to users and developers (#24110) 2 years ago
mailer.go Refactor names (#31405) 8 months ago
static.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util_avatar.go Refactor markup render system (#32533) 2 months ago
util_date.go Update golangci-lint to v1.62.2, fix issues (#32845) 2 months ago
util_date_legacy.go Refactor template ctx and render utils (#32422) 3 months ago
util_date_test.go Refactor DateUtils and merge TimeSince (#32409) 3 months ago
util_dict.go Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 1 year ago
util_json.go Improve template helper (#24417) 2 years ago
util_misc.go Refactor names (#31405) 8 months ago
util_render.go Fix issue title rendering and refactor legacy function names (#32703) 2 months ago
util_render_legacy.go Refactor template ctx and render utils (#32422) 3 months ago
util_render_test.go Fix issue title rendering and refactor legacy function names (#32703) 2 months ago
util_slice.go Improve template helper functions: string/slice (#24266) 2 years ago
util_string.go Do not display `attestation-manifest` and use short sha256 instead of full sha256 (#32851) 2 months ago
util_test.go Improve template helper functions: string/slice (#24266) 2 years ago