diff --git a/public/print.css b/public/print.css index edfde0f..49acddd 100644 --- a/public/print.css +++ b/public/print.css @@ -6,4 +6,10 @@ body { margin: 0 auto; +} + +a, a:visited +{ + color: #000; + background-color: #fff; } \ No newline at end of file diff --git a/public/style.css b/public/style.css index edaabdc..2b9623d 100644 --- a/public/style.css +++ b/public/style.css @@ -120,3 +120,10 @@ tr { border: 0; } + +.download a, .download a:visited +{ + margin: 15px 0; + padding: 7px; + background-color: red; +} diff --git a/views/layout.haml b/views/layout.haml index b3a857f..29cfe25 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -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 diff --git a/views/service.haml b/views/service.haml index 1ff0ece..e55f1d2 100644 --- a/views/service.haml +++ b/views/service.haml @@ -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 diff --git a/views/supplier.haml b/views/supplier.haml index 09808e0..d62cfe4 100644 --- a/views/supplier.haml +++ b/views/supplier.haml @@ -9,7 +9,7 @@ %li = @supplier.name - %p.noprint + %p.noprint.download %a{ :href => "/suppliers/#{@supplier.id}.csv" } Download data as CSV