Browse Source

Colour decisions

main
Adrian Short 5 years ago
parent
commit
b41ccae871
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      lib/helpers.rb
  2. +1
    -0
      public/style.css
  3. +1
    -2
      views/decisions.haml

+ 2
- 2
lib/helpers.rb View File

@@ -8,8 +8,8 @@ def cleanup(s)
s.sub!('Unknown', '') s.sub!('Unknown', '')
s.sub!('Not Available', '') s.sub!('Not Available', '')
s.sub!('Not Applicable', '') s.sub!('Not Applicable', '')
# s = "<span class=grant>#{s}</span>" if s.match(/approve/i)
# s = "<span class=refuse>#{s}</span>" if s.match(/refuse/i)
s = "<span class=grant>#{s}</span>" if s.match(/(approve|grant)/i)
s = "<span class=refuse>#{s}</span>" if s.match(/refuse/i)
s s
end end




+ 1
- 0
public/style.css View File

@@ -130,6 +130,7 @@ table
td, th td, th
{ {
padding: 6px; padding: 6px;
vertical-align: top;
} }


th { th {


+ 1
- 2
views/decisions.haml View File

@@ -18,5 +18,4 @@
= app['council_reference'] = app['council_reference']
%td.nowrap= short_date(app['date_decision']) %td.nowrap= short_date(app['date_decision'])
%td= app['address'] %td= app['address']
%td= app['decision']
%td= cleanup(app['decision'])

Loading…
Cancel
Save