aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-08-01 20:03:48 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-08-07 19:01:06 +0300
commit7db53790ca2d2c004bfd00b503eca59a8d084870 (patch)
tree5f6201d48322043e1f2802efddb28e5643a2dab7 /www
parentee220058d977738c02ead45cc5567bbab33adf48 (diff)
Add support for loading package version reviews
Diffstat (limited to 'www')
-rw-r--r--www/package-details-body.css7
-rw-r--r--www/package-version-details-body.css18
2 files changed, 24 insertions, 1 deletions
diff --git a/www/package-details-body.css b/www/package-details-body.css
index 1083c54..bdef845 100644
--- a/www/package-details-body.css
+++ b/www/package-details-body.css
@@ -185,7 +185,8 @@ table.version th {width: 7.6em;}
table.version tr.version td .value,
table.version tr.priority td .value,
table.version tr.depends td .value,
-table.version tr.requires td .value
+table.version tr.requires td .value,
+table.version tr.reviews td .value
{
/* <code> style. */
font-family: monospace;
@@ -195,3 +196,7 @@ table.version tr.requires td .value
table.version tr.priority td .security {color: #ff0000; font-weight: bold;}
table.version tr.priority td .high {color: #ff0000;}
table.version tr.priority td .medium {color: #fe7c04;}
+
+table.version tr.reviews td .none {color: #fe7c04;}
+table.version tr.reviews td .fail {color: #ff0000;}
+table.version tr.reviews td .pass {color: #00bb00;}
diff --git a/www/package-version-details-body.css b/www/package-version-details-body.css
index 1c41ed5..284ccc2 100644
--- a/www/package-version-details-body.css
+++ b/www/package-version-details-body.css
@@ -289,6 +289,24 @@ h1, h2, h3
}
/*
+ * Reviews.
+ */
+#reviews {margin-top: .4em; margin-bottom: 1em;}
+#reviews th {width: 5.7em;}
+
+#reviews tr.fail td .value,
+#reviews tr.pass td .value
+{
+ /* <code> style. */
+ font-family: monospace;
+ font-size: 0.94em;
+}
+
+#reviews tr td .value .none {color: #fe7c04;}
+#reviews tr td .value .fail {color: #ff0000;}
+#reviews tr td .value .pass {color: #00bb00;}
+
+/*
* Binaries.
*/
#binaries