Browse Source

Suppress word wrap

main
Adrian Short 5 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)
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 View File

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

.nowrap { white-space: nowrap; }

p
{
font-size: 110%;


+ 2
- 2
views/decisions.haml View File

@@ -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 View File

@@ -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 View File

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

Loading…
Cancel
Save