diff options
Diffstat (limited to 'templates/package/content/generic.tmpl')
-rw-r--r-- | templates/package/content/generic.tmpl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/package/content/generic.tmpl b/templates/package/content/generic.tmpl new file mode 100644 index 0000000000..05a47b3ef4 --- /dev/null +++ b/templates/package/content/generic.tmpl @@ -0,0 +1,14 @@ +{{if eq .PackageDescriptor.Package.Type "generic"}} + <h4 class="ui top attached header">{{.i18n.Tr "packages.installation"}}</h4> + <div class="ui attached segment"> + <div class="ui form"> + <div class="field"> + <label>{{svg "octicon-terminal"}} {{.i18n.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> + <div class="field"> + <label>{{.i18n.Tr "packages.generic.documentation" | Safe}}</label> + </div> + </div> + </div> +{{end}} |