2023-05-12 13:27:50 -04:00
|
|
|
{{if eq .PackageDescriptor.Package.Type "alpine"}}
|
2023-09-25 04:56:50 -04:00
|
|
|
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.installation"}}</h4>
|
2023-05-12 13:27:50 -04:00
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui form">
|
|
|
|
<div class="field">
|
2023-09-25 04:56:50 -04:00
|
|
|
<label>{{svg "octicon-code"}} {{ctx.Locale.Tr "packages.alpine.registry" | Safe}}</label>
|
2023-05-12 13:27:50 -04:00
|
|
|
<div class="markup"><pre class="code-block"><code><gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/alpine"></gitea-origin-url>/$branch/$repository</code></pre></div>
|
2023-09-25 04:56:50 -04:00
|
|
|
<p>{{ctx.Locale.Tr "packages.alpine.registry.info" | Safe}}</p>
|
2023-05-12 13:27:50 -04:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2023-09-25 04:56:50 -04:00
|
|
|
<label>{{svg "octicon-terminal"}} {{ctx.Locale.Tr "packages.alpine.registry.key" | Safe}}</label>
|
2023-05-12 13:27:50 -04:00
|
|
|
<div class="markup"><pre class="code-block"><code>curl -JO <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/alpine/key"></gitea-origin-url></code></pre></div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2023-09-25 04:56:50 -04:00
|
|
|
<label>{{svg "octicon-terminal"}} {{ctx.Locale.Tr "packages.alpine.install"}}</label>
|
2023-05-12 13:27:50 -04:00
|
|
|
<div class="markup">
|
|
|
|
<pre class="code-block"><code>sudo apk add {{$.PackageDescriptor.Package.Name}}={{$.PackageDescriptor.Version.Version}}</code></pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2023-01-09 08:01:00 -05:00
|
|
|
<label>{{ctx.Locale.Tr "packages.registry.documentation" "Alpine" "https://forgejo.org/docs/latest/user/packages/alpine/" | Safe}}</label>
|
2023-05-12 13:27:50 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-09-25 04:56:50 -04:00
|
|
|
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.alpine.repository"}}</h4>
|
2023-05-12 13:27:50 -04:00
|
|
|
<div class="ui attached segment">
|
|
|
|
<table class="ui single line very basic table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2023-09-25 04:56:50 -04:00
|
|
|
<td class="collapsing"><h5>{{ctx.Locale.Tr "packages.alpine.repository.branches"}}</h5></td>
|
2023-05-12 13:27:50 -04:00
|
|
|
<td>{{StringUtils.Join .Branches ", "}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-09-25 04:56:50 -04:00
|
|
|
<td class="collapsing"><h5>{{ctx.Locale.Tr "packages.alpine.repository.repositories"}}</h5></td>
|
2023-05-12 13:27:50 -04:00
|
|
|
<td>{{StringUtils.Join .Repositories ", "}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-09-25 04:56:50 -04:00
|
|
|
<td class="collapsing"><h5>{{ctx.Locale.Tr "packages.alpine.repository.architectures"}}</h5></td>
|
2023-05-12 13:27:50 -04:00
|
|
|
<td>{{StringUtils.Join .Architectures ", "}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{if .PackageDescriptor.Metadata.Description}}
|
2023-09-25 04:56:50 -04:00
|
|
|
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.about"}}</h4>
|
2023-05-12 13:27:50 -04:00
|
|
|
<div class="ui attached segment">
|
|
|
|
{{.PackageDescriptor.Metadata.Description}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|