diff --git a/lib/helpers.rb b/lib/helpers.rb index 4ce171a..aaa3f47 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -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) diff --git a/public/style.css b/public/style.css index aa97818..322b00e 100644 --- a/public/style.css +++ b/public/style.css @@ -16,6 +16,8 @@ body margin: 25px 0; } +.nowrap { white-space: nowrap; } + p { font-size: 110%; diff --git a/views/decisions.haml b/views/decisions.haml index 4257827..510e484 100644 --- a/views/decisions.haml +++ b/views/decisions.haml @@ -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'] \ No newline at end of file diff --git a/views/index.haml b/views/index.haml index 3657721..5f0e516 100644 --- a/views/index.haml +++ b/views/index.haml @@ -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'] diff --git a/views/new-applications.haml b/views/new-applications.haml index 838caf3..139292d 100644 --- a/views/new-applications.haml +++ b/views/new-applications.haml @@ -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'] - \ No newline at end of file