aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2022-08-24 03:39:25 +0200
committerGitHub <noreply@github.com>2022-08-23 21:39:25 -0400
commit103b94f96ef07460165c104559c1311a259dac70 (patch)
treef6ec84c0d18be508001138b06daece130c9d0445 /templates
parent1939e873482b57170898525b72f4c27a7bad09df (diff)
downloadgitea-103b94f96ef07460165c104559c1311a259dac70.tar.gz
gitea-103b94f96ef07460165c104559c1311a259dac70.zip
Display all files. (#20917)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/package/content/generic.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/package/content/generic.tmpl b/templates/package/content/generic.tmpl
index 045ff7d08a..2948d9eb02 100644
--- a/templates/package/content/generic.tmpl
+++ b/templates/package/content/generic.tmpl
@@ -4,7 +4,8 @@
<div class="ui form">
<div class="field">
<label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.generic.download"}}</label>
- <div class="markup"><pre class="code-block"><code>curl {{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/generic/{{.PackageDescriptor.Package.Name}}/{{.PackageDescriptor.Version.Version}}/{{(index .PackageDescriptor.Files 0).File.Name}}</code></pre></div>
+ <div class="markup"><pre class="code-block"><code>{{range .PackageDescriptor.Files}}curl {{AppUrl}}api/packages/{{$.PackageDescriptor.Owner.Name}}/generic/{{$.PackageDescriptor.Package.Name}}/{{$.PackageDescriptor.Version.Version}}/{{.File.Name}}
+{{end}}</code></pre></div>
</div>
<div class="field">
<label>{{.locale.Tr "packages.generic.documentation" | Safe}}</label>