blob: cc2e7315246be5c51f2f71058c2b9f70e75049b4 [file] [log] [blame]
<!--
Copyright 2021 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
{{define "title"}}
<title>{{.HTMLTitle}} - pkg.go.dev</title>
{{end}}
{{define "pre-content"}}
<link href="/static/frontend/vuln/vuln.min.css?version={{.AppVersionLabel}}" rel="stylesheet">
{{block "main-styles" .}}{{end}}
{{end}}
{{define "main"}}
<main class="go-Container">
<div class="go-Content Vuln">
{{block "main-content" .}}{{end}}
</div>
</main>
{{end}}
{{define "vuln-details"}}
{{/* . is osv.Entry */}}
<div class="Vuln-details">
<ul class="Vuln-detailsMetadata">
{{if .Aliases}}
<li class="go-textSubtle Vuln-alias">
{{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>
{{end}}
</ul>
<p>{{.Details}}</p>
</div>
{{end}}