Skip to content

Commit

Permalink
Improve and unify styling (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Sep 24, 2024
1 parent 502c77a commit 614336f
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 35 deletions.
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

0 comments on commit 614336f

Please sign in to comment.