forgejo/templates/package/content/rubygems_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

19 lines
503 B
Go HTML Template

{{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 .dependencies}}
<tr>
<td>{{.Name}}</td>
<td>{{range $i, $v := .Version}}{{if gt $i 0}}, {{end}}{{$v.Restriction}}{{$v.Version}}{{end}}</td>
</tr>
{{end}}
</tbody>
</table>
{{end}}