Explorar el Código

Display tweaks

main
Adrian Short hace 5 años
padre
commit
fc99738905
Se han modificado 3 ficheros con 4 adiciones y 2 borrados
  1. +1
    -1
      lib/helpers.rb
  2. +2
    -0
      public/style.css
  3. +1
    -1
      views/authority.haml

+ 1
- 1
lib/helpers.rb Ver fichero

@@ -8,7 +8,7 @@ def cleanup(s)
s.sub!('Unknown', '')
s.sub!('Not Available', '')
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
end


+ 2
- 0
public/style.css Ver fichero

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

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

nav
{
font-size: 85%;


+ 1
- 1
views/authority.haml Ver fichero

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


Cargando…
Cancelar
Guardar