Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve and unify styling #46

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title>GLVD (Under Construction)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="style.css" rel="stylesheet" media="screen" />
</head>
<body>

Expand All @@ -28,9 +29,7 @@
<p><a href="/getPackagesByVulnerability?gardenlinuxVersion=1592.0&cveId=CVE-2022-40303">Packages affected by CVE-2022-40303 in Garden Linux 1592.0</a> </p>
<p><a href="/getPackagesByVulnerability?gardenlinuxVersion=1592.0&cveId=CVE-2024-8088">Packages affected by CVE-2024-8088 in Garden Linux 1592.0</a> </p>


<p><a href="/getCveDetails?cveId=CVE-2024-45490">CVE Details for CVE-2024-45490</a> </p>


</body>
</html>
18 changes: 18 additions & 0 deletions src/main/resources/static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
body, html {
font-family: Sans-Serif;
}

table {
table-layout: fixed;
width: 100%;
}

td {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

table tr:nth-child(odd) td{
background-color: #CCCCCC;
}
22 changes: 6 additions & 16 deletions src/main/resources/templates/getCveDetails.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,17 @@
<head>
<title>GLVD: CVE Details</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
table {
table-layout: fixed;
width: 100%;
}

td {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

</style>
<link href="style.css" rel="stylesheet" media="screen" />
</head>
<body>

<p th:text="|Details for ${cveDetails.cveId}|" />
<h1 th:text="|Details for ${cveDetails.cveId}|" />

<a th:href="@{https://nvd.nist.gov/vuln/detail/} + ${cveDetails.cveId}">NIST NATIONAL VULNERABILITY DATABASE</a>
<a th:href="@{https://nvd.nist.gov/vuln/detail/} + ${cveDetails.cveId}">NIST National Vulnerability Database Entry</a>

<p th:text="|Description: ${cveDetails.description}|" />
<blockquote>
<p th:text="|Description: ${cveDetails.description}|" />
</blockquote>

<p th:text="|Vulnerability Status: ${cveDetails.vulnStatus}|" />

Expand Down
16 changes: 2 additions & 14 deletions src/main/resources/templates/getCveForDistribution.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,10 @@
<head>
<title>GLVD: List vulnerabilities in distro</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
table {
table-layout: fixed;
width: 100%;
}

td {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

</style>
<link href="style.css" rel="stylesheet" media="screen" />
</head>
<body>
<p th:text="|Vulnerabilities list for Garden Linux ${gardenlinuxVersion}|" />
<h1 th:text="|Vulnerabilities list for Garden Linux ${gardenlinuxVersion}|" />

<table>
<thead>
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/templates/getCveForPackages.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<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>
<p th:text="|Vulnerabilities list for Garden Linux ${gardenlinuxVersion} in packages ${packages}|" />
<h1 th:text="|Vulnerabilities list for Garden Linux ${gardenlinuxVersion} in packages ${packages}|" />

<table>
<thead>
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/templates/getPackagesByVulnerability.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<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>
<p th:text="|Packages affected by ${cveId} in Garden Linux ${gardenlinuxVersion}|"/>
<h1 th:text="|Packages affected by ${cveId} in Garden Linux ${gardenlinuxVersion}|"/>

<table>
<thead>
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/templates/getPackagesForDistro.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<head>
<title>GLVD: List packages in distro</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="style.css" rel="stylesheet" media="screen" />
</head>
<body>
<p th:text="|Package list for Garden Linux ${gardenlinuxVersion}|" />
<h1 th:text="|Package list for Garden Linux ${gardenlinuxVersion}|" />

<table>
<thead>
Expand Down
Loading