Browse Source

Suppress word wrap

main
Adrian Short 6 years ago
parent
commit
2c506d8b58
5 changed files with 8 additions and 7 deletions
  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 View File

@@ -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)


+ 2
- 0
public/style.css View File

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


.nowrap { white-space: nowrap; }

p p
{ {
font-size: 110%; font-size: 110%;


+ 2
- 2
views/decisions.haml View File

@@ -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']

+ 1
- 1
views/index.haml View File

@@ -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']


+ 2
- 3
views/new-applications.haml View File

@@ -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']

Loading…
Cancel
Save