Browse Source

Removed junk code; improved CSV download buttons

pull/3/head
Adrian Short 14 years ago
parent
commit
3c47137f2d
2 changed files with 8 additions and 21 deletions
  1. +1
    -21
      app.rb
  2. +7
    -0
      public/style.css

+ 1
- 21
app.rb View File

@@ -6,27 +6,7 @@ require 'lib/models'




get '/' do 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 haml :home
end end




+ 7
- 0
public/style.css View File

@@ -126,4 +126,11 @@ tr
margin: 15px 0; margin: 15px 0;
padding: 7px; padding: 7px;
background-color: red; background-color: red;
color: white;
}

.download a:hover
{
background-color: #ccc;
color: red;
} }

Loading…
Cancel
Save