From b41ccae8712f6dc506b19e6e3b5125198828219f Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 23 Sep 2018 21:45:33 +0100 Subject: [PATCH] Colour decisions --- lib/helpers.rb | 4 ++-- public/style.css | 1 + views/decisions.haml | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/helpers.rb b/lib/helpers.rb index aaa3f47..dd6a92e 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -8,8 +8,8 @@ def cleanup(s) s.sub!('Unknown', '') s.sub!('Not Available', '') s.sub!('Not Applicable', '') - # s = "#{s}" if s.match(/approve/i) - # s = "#{s}" if s.match(/refuse/i) + s = "#{s}" if s.match(/(approve|grant)/i) + s = "#{s}" if s.match(/refuse/i) s end diff --git a/public/style.css b/public/style.css index 322b00e..316f201 100644 --- a/public/style.css +++ b/public/style.css @@ -130,6 +130,7 @@ table td, th { padding: 6px; + vertical-align: top; } th { diff --git a/views/decisions.haml b/views/decisions.haml index 510e484..09836a5 100644 --- a/views/decisions.haml +++ b/views/decisions.haml @@ -18,5 +18,4 @@ = app['council_reference'] %td.nowrap= short_date(app['date_decision']) %td= app['address'] - %td= app['decision'] - \ No newline at end of file + %td= cleanup(app['decision'])