1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-05 09:44:26 +00:00
gitea/templates/package/content/composer_dependencies.tmpl
wxiaoguang 597b04fe2f
Backport ctx locale refactoring manually (#27231) (#27259) (#27260)
Backport #27231 #27259 manually

---------

Co-authored-by: delvh <dev.lh@web.de>
2023-09-25 13:15:51 +00:00

20 lines
456 B
Handlebars

{{if .dependencies}}
<p><strong>{{.title}}</strong></p>
<table class="ui single line very basic table">
<thead>
<tr>
<th class="eleven wide">{{ctx.Locale.Tr "packages.dependency.id"}}</th>
<th class="five wide">{{ctx.Locale.Tr "packages.dependency.version"}}</th>
</tr>
</thead>
<tbody>
{{range $dependency, $version := .dependencies}}
<tr>
<td>{{$dependency}}</td>
<td>{{$version}}</td>
</tr>
{{end}}
</tbody>
</table>
{{end}}