Browse Source

Improved print styles and CSV download buttons

pull/3/head
Adrian Short 14 years ago
parent
commit
efe0096970
5 changed files with 17 additions and 2 deletions
  1. +6
    -0
      public/print.css
  2. +7
    -0
      public/style.css
  3. +2
    -0
      views/layout.haml
  4. +1
    -1
      views/service.haml
  5. +1
    -1
      views/supplier.haml

+ 6
- 0
public/print.css View File

@@ -6,4 +6,10 @@
body
{
margin: 0 auto;
}

a, a:visited
{
color: #000;
background-color: #fff;
}

+ 7
- 0
public/style.css View File

@@ -120,3 +120,10 @@ tr
{
border: 0;
}

.download a, .download a:visited
{
margin: 15px 0;
padding: 7px;
background-color: red;
}

+ 2
- 0
views/layout.haml View File

@@ -36,3 +36,5 @@
%a{ :href => '/suppliers' } Suppliers
%p
%a{ :href => '/about' } About this website
%p
%a{ :href => 'http://adrianshort.co.uk/' } Designed by Adrian Short

+ 1
- 1
views/service.haml View File

@@ -8,7 +8,7 @@
%a{ :href => '/services' } Services
%li
= @service.name
%p
%p.noprint.download
%a{ :href => "/services/#{@service.id}.csv" }
Download data as CSV


+ 1
- 1
views/supplier.haml View File

@@ -9,7 +9,7 @@
%li
= @supplier.name

%p.noprint
%p.noprint.download
%a{ :href => "/suppliers/#{@supplier.id}.csv" }
Download data as CSV


Loading…
Cancel
Save