Explorar el Código

Suppress word wrap

main
Adrian Short hace 6 años
padre
commit
2c506d8b58
Se han modificado 5 ficheros con 8 adiciones y 7 borrados
  1. +1
    -1
      lib/helpers.rb
  2. +2
    -0
      public/style.css
  3. +2
    -2
      views/decisions.haml
  4. +1
    -1
      views/index.haml
  5. +2
    -3
      views/new-applications.haml

+ 1
- 1
lib/helpers.rb Ver fichero

@@ -1,6 +1,6 @@
def short_date(s)
return if s.nil?
Date.parse(s).strftime("%e %b %Y").gsub(' ', ' ')
Date.parse(s).strftime("%e %b %Y")
end

def cleanup(s)


+ 2
- 0
public/style.css Ver fichero

@@ -16,6 +16,8 @@ body
margin: 25px 0;
}

.nowrap { white-space: nowrap; }

p
{
font-size: 110%;


+ 2
- 2
views/decisions.haml Ver fichero

@@ -10,13 +10,13 @@
%tbody
- apps.each do |app|
%tr
%td
%td.nowrap
%a{ href: authority_url(app['authority_name']) }
= app['authority_name']
%td
%a{ href: app['info_url']}
= app['council_reference']
%td= short_date(app['date_decision'])
%td.nowrap= short_date(app['date_decision'])
%td= app['address']
%td= app['decision']

+ 1
- 1
views/index.haml Ver fichero

@@ -19,7 +19,7 @@
%tbody
- summary.each do |row|
%tr
%td
%td.nowrap
%a{ href: authority_url(row['authority_name']) }
= row['authority_name']
%td= row['status']


+ 2
- 3
views/new-applications.haml Ver fichero

@@ -9,12 +9,11 @@
%tbody
- apps.each do |app|
%tr
%td
%td.nowrap
%a{ href: authority_url(app['authority_name']) }
= app['authority_name']
%td
%a{ href: app['info_url']}
= app['council_reference']
%td= short_date(app['date_received'])
%td.nowrap= short_date(app['date_received'])
%td= app['address']

Cargando…
Cancelar
Guardar