mirror of
https://github.com/go-gitea/gitea
synced 2024-11-09 19:54:25 +00:00
89e39872ff
Thanks to @Zottelchen for looking into problem and proposing the fix. Ref: https://github.com/astral-sh/uv/issues/3017 , https://peps.python.org/pep-0503/ This PR's change is from Zottelchen's work. And I by the way rename the `$p` to `$pd` because `p` is used as "package" in code, while `pd` is used as "package description". ---- Co-authored-by: Zottelchen
17 lines
609 B
Handlebars
17 lines
609 B
Handlebars
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<title>Links for {{.PackageDescriptor.Package.Name}}</title>
|
||
</head>
|
||
<body>
|
||
{{- /* PEP 503 – Simple Repository API: https://peps.python.org/pep-0503/ */ -}}
|
||
<h1>Links for {{.PackageDescriptor.Package.Name}}</h1>
|
||
{{range .PackageDescriptors}}
|
||
{{$pd := .}}
|
||
{{range .Files}}
|
||
<a href="{{$.RegistryURL}}/files/{{$pd.Package.LowerName}}/{{$pd.Version.Version}}/{{.File.Name}}#sha256={{.Blob.HashSHA256}}"{{if $pd.Metadata.RequiresPython}} data-requires-python="{{$pd.Metadata.RequiresPython}}"{{end}}>{{.File.Name}}</a><br>
|
||
{{end}}
|
||
{{end}}
|
||
</body>
|
||
</html>
|