diff options
Diffstat (limited to 'templates/api/packages/pypi/simple.tmpl')
-rw-r--r-- | templates/api/packages/pypi/simple.tmpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/api/packages/pypi/simple.tmpl b/templates/api/packages/pypi/simple.tmpl new file mode 100644 index 0000000..181f826 --- /dev/null +++ b/templates/api/packages/pypi/simple.tmpl @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>Links for {{.PackageDescriptor.Package.Name}}</title> + </head> + <body> + <h1>Links for {{.PackageDescriptor.Package.Name}}</h1> + {{range .PackageDescriptors}} + {{$p := .}} + {{range .Files}} + <a href="{{$.RegistryURL}}/files/{{$p.Package.LowerName}}/{{$p.Version.Version}}/{{.File.Name}}#sha256={{.Blob.HashSHA256}}"{{if $p.Metadata.RequiresPython}} data-requires-python="{{$p.Metadata.RequiresPython}}"{{end}}>{{.File.Name}}</a><br> + {{end}} + {{end}} + </body> +</html> |