static/frontend: display affected packages with vuln
Modify the vuln/list page to display the packages affected by a vuln.
Fixes golang/go#52685
Run-TryBot: Jonathan Amsterdam
TryBot-Result: kokoro
{{end}}
{{define "vuln-details"}}
+ {{/* . is osv.Entry */}}
<div class="Vuln-details">
<ul class="Vuln-detailsMetadata">
{{if .Aliases}}
{{range $i, $v := .Aliases}}{{if ne $i 0}},{{end}}{{$v}}{{end}}
</li>
{{end}}
+ <li class="go-textSubtle">Affects:
+ {{range $i, $v := .Affected}}{{if ne $i 0}}, {{end}}{{$v.Package.Name}}{{end}}
+ </li>
<li class="go-textSubtle">Published: {{.Published.Format "Jan 02, 2006"}}</li>
{{if ne .Published .Modified}}
<li class="go-textSubtle">Modified: {{.Modified.Format "Jan 02, 2006"}}</li>
