From 3dc1417d9038155efc36dcf1c10ffdeef30f6d19 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Wed, 14 May 2025 11:27:49 +0100 Subject: [toplinks] trialling new waste thing --- cgi/home.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgi/home.cgi') diff --git a/cgi/home.cgi b/cgi/home.cgi index 4196d1d..655bdcb 100644 --- a/cgi/home.cgi +++ b/cgi/home.cgi @@ -48,7 +48,7 @@ def words_collection(resp) end def graphic_collection(resp) - events = Array.new(28) { "empty" } + events = Array.new(30) { "empty" } resp.each { |coll| days = ((Time.parse(coll["nextCollection"]) - Time.now) / (60*60*24)).ceil @@ -62,7 +62,7 @@ def graphic_collection(resp) } + $cgi.tr { tout = "" - (0..27).step(2).each { |i| + (0..29).step(2).each { |i| tout += $cgi.td(class: "waste-#{events[i]} morning") tout += $cgi.td(class: "waste-#{events[i+1]} evening") } -- cgit v1.2.3