2022-03-30 17:42:47 +09:00
|
|
|
{{if eq .PackageDescriptor.Package.Type "conan"}}
|
2022-06-28 05:58:46 +09:00
|
|
|
<h4 class="ui top attached header">{{.locale.Tr "packages.installation"}}</h4>
|
2022-03-30 17:42:47 +09:00
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui form">
|
|
|
|
<div class="field">
|
2022-06-28 05:58:46 +09:00
|
|
|
<label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.conan.registry"}}</label>
|
2022-03-30 17:42:47 +09:00
|
|
|
<div class="markup"><pre class="code-block"><code>conan remote add gitea {{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/conan</code></pre></div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2022-06-28 05:58:46 +09:00
|
|
|
<label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.conan.install"}}</label>
|
2022-03-30 17:42:47 +09:00
|
|
|
<div class="markup"><pre class="code-block"><code>conan install --remote=gitea {{.PackageDescriptor.Package.Name}}/{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2022-06-28 05:58:46 +09:00
|
|
|
<label>{{.locale.Tr "packages.conan.documentation" | Safe}}</label>
|
2022-03-30 17:42:47 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{if .PackageDescriptor.Metadata.Description}}
|
2022-06-28 05:58:46 +09:00
|
|
|
<h4 class="ui top attached header">{{.locale.Tr "packages.about"}}</h4>
|
2022-03-30 17:42:47 +09:00
|
|
|
<div class="ui attached segment">
|
|
|
|
{{if .PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Description}}{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if or .PackageDescriptor.Metadata.Keywords}}
|
2022-06-28 05:58:46 +09:00
|
|
|
<h4 class="ui top attached header">{{.locale.Tr "packages.keywords"}}</h4>
|
2022-03-30 17:42:47 +09:00
|
|
|
<div class="ui attached segment">
|
|
|
|
{{range .PackageDescriptor.Metadata.Keywords}}
|
|
|
|
{{.}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|