aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2025-05-14 11:30:16 +0100
committerNat Lasseter <user@4574.co.uk>2025-05-14 11:30:16 +0100
commit706477d004afa77f015c1fe9a98f6a2027220856 (patch)
tree0c85d4ef1fc97e87aac8d62e74f3a4b2cb56d303
parent3dc1417d9038155efc36dcf1c10ffdeef30f6d19 (diff)
[toplinks] trialling new waste thing
-rw-r--r--cgi/home.cgi6
-rw-r--r--static/styles.css4
2 files changed, 7 insertions, 3 deletions
diff --git a/cgi/home.cgi b/cgi/home.cgi
index 655bdcb..470ada4 100644
--- a/cgi/home.cgi
+++ b/cgi/home.cgi
@@ -58,7 +58,11 @@ def graphic_collection(resp)
$cgi.table(class: "waste-table") {
$cgi.tr {
- $cgi.td { "&#x21d3;" }
+ tout = ""
+ (0..14).each { |i|
+ tout += $cgi.td(colspan: 2) { (Time.now + (i * 60*60*24)).date }
+ }
+ tout
} +
$cgi.tr {
tout = ""
diff --git a/static/styles.css b/static/styles.css
index 1e44275..6d696fe 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -73,8 +73,8 @@ div#quote {
table.waste-table {
border-collapse: collapse;
td {
- width: 10px;
- height: 10px;
+ width: 15px;
+ height: 15px;
text-align: center;
}
td.morning {