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; }