mirror of
https://github.com/go-gitea/gitea
synced 2025-01-08 00:44:26 +00:00
feat: link to nuget dependencies (#26554)
Add links to dependencies and their versions, as done in nuget site. Makes it easier to use. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
2564c15cb0
commit
d030cace1a
@ -3538,6 +3538,7 @@ versions = Versions
|
|||||||
versions.view_all = View all
|
versions.view_all = View all
|
||||||
dependency.id = ID
|
dependency.id = ID
|
||||||
dependency.version = Version
|
dependency.version = Version
|
||||||
|
search_in_external_registry = Search in %s
|
||||||
alpine.registry = Setup this registry by adding the url in your <code>/etc/apk/repositories</code> file:
|
alpine.registry = Setup this registry by adding the url in your <code>/etc/apk/repositories</code> file:
|
||||||
alpine.registry.key = Download the registry public RSA key into the <code>/etc/apk/keys/</code> folder to verify the index signature:
|
alpine.registry.key = Download the registry public RSA key into the <code>/etc/apk/keys/</code> folder to verify the index signature:
|
||||||
alpine.registry.info = Choose $branch and $repository from the list below.
|
alpine.registry.info = Choose $branch and $repository from the list below.
|
||||||
|
@ -35,11 +35,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
{{$tooltipSearchInNuget := ctx.Locale.Tr "packages.search_in_external_registry" "nuget.org"}}
|
||||||
{{range $framework, $dependencies := .PackageDescriptor.Metadata.Dependencies}}
|
{{range $framework, $dependencies := .PackageDescriptor.Metadata.Dependencies}}
|
||||||
{{range $dependencies}}
|
{{range $dependencies}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{.ID}}</td>
|
<td>{{.ID}} <a target="_blank" rel="noreferrer" href="https://www.nuget.org/packages/{{.ID}}" data-tooltip-content="{{$tooltipSearchInNuget}}">{{svg "octicon-link-external"}}</a></td>
|
||||||
<td>{{.Version}}</td>
|
<td>{{.Version}} <a target="_blank" rel="noreferrer" href="https://www.nuget.org/packages/{{.ID}}/{{.Version}}" data-tooltip-content="{{$tooltipSearchInNuget}}">{{svg "octicon-link-external"}}</a></td>
|
||||||
<td>{{$framework}}</td>
|
<td>{{$framework}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user