Browse Source

Display tweaks

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

+ 1
- 1
lib/helpers.rb View File

@@ -8,7 +8,7 @@ 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|grant)/i)
s = "<span class=grant>#{s}</span>" if s.match(/(approve|grant|permitted)/i)
s = "<span class=refuse>#{s}</span>" if s.match(/refuse/i) s = "<span class=refuse>#{s}</span>" if s.match(/refuse/i)
s s
end end


+ 2
- 0
public/style.css View File

@@ -145,6 +145,8 @@ tr
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }


tbody tr:hover { background-color: beige; }

nav nav
{ {
font-size: 85%; font-size: 85%;


+ 1
- 1
views/authority.haml View File

@@ -38,7 +38,7 @@
%th Decision %th Decision
- apps.each do |app| - apps.each do |app|
%tr %tr
%td= short_date(app['date_received'])
%td.nowrap= short_date(app['date_received'])
%td %td
%a{ href: app['info_url']} %a{ href: app['info_url']}
= app['council_reference'] = app['council_reference']


Loading…
Cancel
Save