Procházet zdrojové kódy

Suppress word wrap

main
Adrian Short před 5 roky
rodič
revize
2c506d8b58
5 změnil soubory, kde provedl 8 přidání a 7 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

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

.nowrap { white-space: nowrap; }

p
{
font-size: 110%;


+ 2
- 2
views/decisions.haml Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

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

Načítá se…
Zrušit
Uložit