From 3c47137f2df6e4c01e31265750f1bf914c50cff3 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 7 Jun 2010 00:28:54 +0100 Subject: [PATCH] Removed junk code; improved CSV download buttons --- app.rb | 22 +--------------------- public/style.css | 7 +++++++ 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/app.rb b/app.rb index c39f8f0..5940c69 100644 --- a/app.rb +++ b/app.rb @@ -6,27 +6,7 @@ require 'lib/models' get '/' do - @directorates = Directorate.all - -# @results = repository(:default).adapter.query(" -# SELECT p.name, -# sum(c.votes_2010) AS votes, -# p.colour -# -# FROM parties p, -# councilcandidates c -# -# WHERE p.id = c.party_id -# -# GROUP BY p.name, p.colour -# -# ORDER BY votes desc -# ;") - -# select p.name, count(c.*) AS seats -# FROM parties p, councilcandidates c -# GROUP BY p.id - + @directorates = Directorate.all( :order => ['name'] ) haml :home end diff --git a/public/style.css b/public/style.css index 2b9623d..770c436 100644 --- a/public/style.css +++ b/public/style.css @@ -126,4 +126,11 @@ tr margin: 15px 0; padding: 7px; background-color: red; + color: white; +} + +.download a:hover +{ + background-color: #ccc; + color: red; }