static/frontend: add suggest edit button to vuln report
Adds a link to file a GitHub issue suggesting
an edit for a vulnerability report. The issue
report prepopulates title and report ID fields.
Change-Id: Idde1ef75a3ff02a6daa8850d4875c66fe02c1504
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/421395
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
diff --git a/static/frontend/vuln/entry/entry.tmpl b/static/frontend/vuln/entry/entry.tmpl
index 5cb2636..39aed9b 100644
--- a/static/frontend/vuln/entry/entry.tmpl
+++ b/static/frontend/vuln/entry/entry.tmpl
@@ -65,4 +65,11 @@
{{range .References}}<li><a href="{{.URL}}">{{.URL}}</a></li>{{end}}
</ul>
{{end}}
+ <h2>Feedback</h2>
+ <div>
+ See anything missing or incorrect?
+ <a target="_blank" href="https://github.com/golang/vulndb/issues/new?assignees=&labels=Needs+Triage%2CSuggested+Edit&template=suggest_edit.yaml&title=x%2Fvulndb%3A+suggestion+regarding+{{.ID}}&report={{.ID}}">
+ Suggest an edit to this report.
+ </a>
+ </div>
{{end}}