diff options
author | Nat Lasseter <user@4574.co.uk> | 2025-05-14 19:21:59 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2025-05-14 19:21:59 +0100 |
commit | f5c3294f9baf3cfeb3ceb585d6cd91e17b4ad56c (patch) | |
tree | c12c48db899963b8599fdd9d6d6ec03fdd731755 /cgi | |
parent | 0514bcb8d3ec28e54c2b5331e474524a5e3a5698 (diff) |
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/home.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cgi/home.cgi b/cgi/home.cgi index 14b6be7..f5ad153 100644 --- a/cgi/home.cgi +++ b/cgi/home.cgi @@ -44,7 +44,7 @@ def words_collection(resp) tout += $cgi.br out += tout } - out + $cgi.p { out } end def graphic_collection(resp) @@ -58,7 +58,8 @@ def graphic_collection(resp) $cgi.table(class: "waste-table") { $cgi.tr { - $cgi.td(colspan: 2, class: "arrow") { "⇓" } + (Time.now.hour > 12 ? $cgi.td : "") + + $cgi.td(class: "arrow") { "⇓" } } + $cgi.tr { tout = "" @@ -90,7 +91,7 @@ $page = $cgi.div { $cgi.h1 { "Welcome!" } } + $cgi.div { $cgi.h2 { "Our Next Bin Collections" } + - $cgi.p { next_collection } + next_collection } + $cgi.div { $cgi.h2 { "Speak Gently Over the Telephone" } + |