Skip to content

Commit

Permalink
static/frontend/vuln: add withdrawn time for vulns
Browse files Browse the repository at this point in the history
Display the withdrawn time for vulnerabilities (if one is present).

Change-Id: Ia215392ccb8340eee089528e586b43ab995d5fa5
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/579917
Run-TryBot: Tatiana Bradley <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>
kokoro-CI: kokoro <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
  • Loading branch information
tatianab committed Apr 18, 2024
1 parent a4e5888 commit ddbbf7b
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion static/frontend/frontend.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/frontend/frontend.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions static/frontend/vuln/vuln.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
{{if ne .Published .Modified}}
<li class="go-textSubtle">Modified: {{.Modified.Format "Jan 02, 2006"}}</li>
{{end}}
{{with .Withdrawn}}
<li class="go-textSubtle">Withdrawn: {{.Format "Jan 02, 2006"}}</li>
{{end}}
</ul>
<p>{{.Details}}</p>
</div>
Expand Down
Binary file modified tests/screentest/testdata/ci/vuln-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-entry-withdrawn-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-entry-withdrawn.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-list-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-list.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ddbbf7b

Please sign in to comment.