-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow viewing both resolved and unresolved issues
Part of gardenlinux/glvd#127
- Loading branch information
Showing
3 changed files
with
90 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/main/resources/templates/getCveForDistributionAll.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE HTML> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<title>GLVD: List vulnerabilities in distro</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<link href="style.css" rel="stylesheet" media="screen" /> | ||
</head> | ||
<body> | ||
<h1 th:text="|Vulnerabilities list for Garden Linux ${gardenlinuxVersion} (showing resolved issues)|" /> | ||
|
||
<p th:text="|Found ${#lists.size(sourcePackageCves)} potential security issues|"></p> | ||
|
||
<a th:href="@{/getCveForDistribution(gardenlinuxVersion=${gardenlinuxVersion},onlyVulnerable=true)}">Show only unresolved potential issues</a> | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>CVE ID | ||
<a th:href="@{/getCveForDistributionAll(gardenlinuxVersion=${gardenlinuxVersion},sortBy=cveId,sortOrder=ASC,onlyVulnerable=false)}">↑</a> | ||
<a th:href="@{/getCveForDistributionAll(gardenlinuxVersion=${gardenlinuxVersion},sortBy=cveId,sortOrder=DESC,onlyVulnerable=false)}">↓</a> | ||
</th> | ||
|
||
<th>CVE Base Score | ||
<a th:href="@{/getCveForDistributionAll(gardenlinuxVersion=${gardenlinuxVersion},sortBy=baseScore,sortOrder=ASC,onlyVulnerable=false)}">↑</a> | ||
<a th:href="@{/getCveForDistributionAll(gardenlinuxVersion=${gardenlinuxVersion},sortBy=baseScore,sortOrder=DESC,onlyVulnerable=false)}">↓</a> | ||
</th> | ||
|
||
<th>Vector String</th> | ||
|
||
<th>CVE Published Date | ||
<a th:href="@{/getCveForDistributionAll(gardenlinuxVersion=${gardenlinuxVersion},sortBy=cvePublishedDate,sortOrder=ASC,onlyVulnerable=false)}">↑</a> | ||
<a th:href="@{/getCveForDistributionAll(gardenlinuxVersion=${gardenlinuxVersion},sortBy=cvePublishedDate,sortOrder=DESC,onlyVulnerable=false)}">↓</a> | ||
</th> | ||
|
||
<th>Source Package | ||
<a th:href="@{/getCveForDistributionAll(gardenlinuxVersion=${gardenlinuxVersion},sortBy=sourcePackageName,sortOrder=ASC,onlyVulnerable=false)}">↑</a> | ||
<a th:href="@{/getCveForDistributionAll(gardenlinuxVersion=${gardenlinuxVersion},sortBy=sourcePackageName,sortOrder=DESC,onlyVulnerable=false)}">↓</a> | ||
</th> | ||
|
||
<th>Version</th> | ||
<th>Is Vulnerable?</th> | ||
</tr> | ||
</thead> | ||
<tr th:each="item: ${sourcePackageCves}"> | ||
<td><a th:href="@{/getCveDetails(cveId=${item.cveId})}"> <div th:text="${item.cveId}"/> </a></td> | ||
<td th:text="${item.baseScore}" /> | ||
<td th:text="${item.vectorString}" /> | ||
<td th:text="${item.cvePublishedDate}" /> | ||
<td th:text="${item.sourcePackageName}" /> | ||
<td th:text="${item.sourcePackageVersion}" /> | ||
<td th:text="${item.isVulnerable}" /> | ||
</tr> | ||
</table> | ||
|
||
</body> | ||
</html> |