From 2d12ccef5a903c834997a04ae3e5d81c567ad22a Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Tue, 24 Sep 2024 11:27:23 +0200 Subject: [PATCH] Improve and unify styling --- src/main/resources/static/index.html | 3 +-- src/main/resources/static/style.css | 18 +++++++++++++++ .../resources/templates/getCveDetails.html | 22 +++++-------------- .../templates/getCveForDistribution.html | 16 ++------------ .../templates/getCveForPackages.html | 3 ++- .../templates/getPackagesByVulnerability.html | 3 ++- .../templates/getPackagesForDistro.html | 3 ++- 7 files changed, 33 insertions(+), 35 deletions(-) create mode 100644 src/main/resources/static/style.css diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 6b1225e..9833698 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -3,6 +3,7 @@ GLVD (Under Construction) + @@ -28,9 +29,7 @@

Packages affected by CVE-2022-40303 in Garden Linux 1592.0

Packages affected by CVE-2024-8088 in Garden Linux 1592.0

-

CVE Details for CVE-2024-45490

- \ No newline at end of file diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css new file mode 100644 index 0000000..24a7c41 --- /dev/null +++ b/src/main/resources/static/style.css @@ -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; +} diff --git a/src/main/resources/templates/getCveDetails.html b/src/main/resources/templates/getCveDetails.html index 69c4c85..2ce32e5 100644 --- a/src/main/resources/templates/getCveDetails.html +++ b/src/main/resources/templates/getCveDetails.html @@ -3,27 +3,17 @@ GLVD: CVE Details - + -

+

-NIST NATIONAL VULNERABILITY DATABASE +NIST National Vulnerability Database Entry -

+

+

+

diff --git a/src/main/resources/templates/getCveForDistribution.html b/src/main/resources/templates/getCveForDistribution.html index 6d7f72c..c2ffcb1 100644 --- a/src/main/resources/templates/getCveForDistribution.html +++ b/src/main/resources/templates/getCveForDistribution.html @@ -3,22 +3,10 @@ GLVD: List vulnerabilities in distro - + -

+

diff --git a/src/main/resources/templates/getCveForPackages.html b/src/main/resources/templates/getCveForPackages.html index 0392800..fd3c4a7 100644 --- a/src/main/resources/templates/getCveForPackages.html +++ b/src/main/resources/templates/getCveForPackages.html @@ -3,9 +3,10 @@ GLVD: List vulnerabilities in distro + -

+

diff --git a/src/main/resources/templates/getPackagesByVulnerability.html b/src/main/resources/templates/getPackagesByVulnerability.html index edac538..e84fda9 100644 --- a/src/main/resources/templates/getPackagesByVulnerability.html +++ b/src/main/resources/templates/getPackagesByVulnerability.html @@ -3,9 +3,10 @@ GLVD: List vulnerabilities in distro + -

+

diff --git a/src/main/resources/templates/getPackagesForDistro.html b/src/main/resources/templates/getPackagesForDistro.html index 08ff51b..d034e2f 100644 --- a/src/main/resources/templates/getPackagesForDistro.html +++ b/src/main/resources/templates/getPackagesForDistro.html @@ -3,9 +3,10 @@ GLVD: List packages in distro + -

+