| @@ -1,6 +1,6 @@ | |||||
| def short_date(s) | def short_date(s) | ||||
| return if s.nil? | return if s.nil? | ||||
| Date.parse(s).strftime("%e %b %Y").gsub(' ', ' ') | |||||
| Date.parse(s).strftime("%e %b %Y") | |||||
| end | end | ||||
| def cleanup(s) | def cleanup(s) | ||||
| @@ -16,6 +16,8 @@ body | |||||
| margin: 25px 0; | margin: 25px 0; | ||||
| } | } | ||||
| .nowrap { white-space: nowrap; } | |||||
| p | p | ||||
| { | { | ||||
| font-size: 110%; | font-size: 110%; | ||||
| @@ -10,13 +10,13 @@ | |||||
| %tbody | %tbody | ||||
| - apps.each do |app| | - apps.each do |app| | ||||
| %tr | %tr | ||||
| %td | |||||
| %td.nowrap | |||||
| %a{ href: authority_url(app['authority_name']) } | %a{ href: authority_url(app['authority_name']) } | ||||
| = app['authority_name'] | = app['authority_name'] | ||||
| %td | %td | ||||
| %a{ href: app['info_url']} | %a{ href: app['info_url']} | ||||
| = app['council_reference'] | = app['council_reference'] | ||||
| %td= short_date(app['date_decision']) | |||||
| %td.nowrap= short_date(app['date_decision']) | |||||
| %td= app['address'] | %td= app['address'] | ||||
| %td= app['decision'] | %td= app['decision'] | ||||
| @@ -19,7 +19,7 @@ | |||||
| %tbody | %tbody | ||||
| - summary.each do |row| | - summary.each do |row| | ||||
| %tr | %tr | ||||
| %td | |||||
| %td.nowrap | |||||
| %a{ href: authority_url(row['authority_name']) } | %a{ href: authority_url(row['authority_name']) } | ||||
| = row['authority_name'] | = row['authority_name'] | ||||
| %td= row['status'] | %td= row['status'] | ||||
| @@ -9,12 +9,11 @@ | |||||
| %tbody | %tbody | ||||
| - apps.each do |app| | - apps.each do |app| | ||||
| %tr | %tr | ||||
| %td | |||||
| %td.nowrap | |||||
| %a{ href: authority_url(app['authority_name']) } | %a{ href: authority_url(app['authority_name']) } | ||||
| = app['authority_name'] | = app['authority_name'] | ||||
| %td | %td | ||||
| %a{ href: app['info_url']} | %a{ href: app['info_url']} | ||||
| = app['council_reference'] | = app['council_reference'] | ||||
| %td= short_date(app['date_received']) | |||||
| %td.nowrap= short_date(app['date_received']) | |||||
| %td= app['address'] | %td= app['address'] | ||||