2023-05-12 20:27:50 +03:00
{{ if eq .PackageDescriptor .Package .Type "alpine" }}
2023-09-25 11:56:50 +03:00
<h4 class="ui top attached header"> {{ ctx .Locale .Tr "packages.installation" }} </h4>
2023-05-12 20:27:50 +03:00
<div class="ui attached segment">
<div class="ui form">
<div class="field">
2024-02-22 20:02:33 +03:00
<label> {{ svg "octicon-code" }} {{ ctx .Locale .Tr "packages.alpine.registry" }} </label>
2024-03-15 05:05:31 +03:00
<div class="markup"><pre class="code-block"><code><origin-url data-url=" {{ AppSubUrl }} /api/packages/ {{ $ .PackageDescriptor .Owner .Name }} /alpine"></origin-url>/$branch/$repository</code></pre></div>
2024-02-22 20:02:33 +03:00
<p> {{ ctx .Locale .Tr "packages.alpine.registry.info" }} </p>
2023-05-12 20:27:50 +03:00
</div>
<div class="field">
2024-02-22 20:02:33 +03:00
<label> {{ svg "octicon-terminal" }} {{ ctx .Locale .Tr "packages.alpine.registry.key" }} </label>
2024-03-15 05:05:31 +03:00
<div class="markup"><pre class="code-block"><code>curl -JO <origin-url data-url=" {{ AppSubUrl }} /api/packages/ {{ $ .PackageDescriptor .Owner .Name }} /alpine/key"></origin-url></code></pre></div>
2023-05-12 20:27:50 +03:00
</div>
<div class="field">
2023-09-25 11:56:50 +03:00
<label> {{ svg "octicon-terminal" }} {{ ctx .Locale .Tr "packages.alpine.install" }} </label>
2023-05-12 20:27:50 +03: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">
2024-02-22 20:02:33 +03:00
<label> {{ ctx .Locale .Tr "packages.registry.documentation" "Alpine" "https://docs.gitea.com/usage/packages/alpine/" }} </label>
2023-05-12 20:27:50 +03:00
</div>
</div>
</div>
2023-09-25 11:56:50 +03:00
<h4 class="ui top attached header"> {{ ctx .Locale .Tr "packages.alpine.repository" }} </h4>
2023-05-12 20:27:50 +03:00
<div class="ui attached segment">
<table class="ui single line very basic table">
<tbody>
<tr>
2023-09-25 11:56:50 +03:00
<td class="collapsing"><h5> {{ ctx .Locale .Tr "packages.alpine.repository.branches" }} </h5></td>
2023-05-12 20:27:50 +03:00
<td> {{ StringUtils .Join .Branches ", " }} </td>
</tr>
<tr>
2023-09-25 11:56:50 +03:00
<td class="collapsing"><h5> {{ ctx .Locale .Tr "packages.alpine.repository.repositories" }} </h5></td>
2023-05-12 20:27:50 +03:00
<td> {{ StringUtils .Join .Repositories ", " }} </td>
</tr>
<tr>
2023-09-25 11:56:50 +03:00
<td class="collapsing"><h5> {{ ctx .Locale .Tr "packages.alpine.repository.architectures" }} </h5></td>
2023-05-12 20:27:50 +03:00
<td> {{ StringUtils .Join .Architectures ", " }} </td>
</tr>
</tbody>
</table>
</div>
{{ if .PackageDescriptor .Metadata .Description }}
2023-09-25 11:56:50 +03:00
<h4 class="ui top attached header"> {{ ctx .Locale .Tr "packages.about" }} </h4>
2023-05-12 20:27:50 +03:00
<div class="ui attached segment">
{{ .PackageDescriptor .Metadata .Description }}
</div>
{{ end }}
{{ end }}