Adrian Short
1250728fb6
Revert "Revert "Revert "Make Date.parse work"""
This reverts commit 864478f2a5
.
12 vuotta sitten
Adrian Short
864478f2a5
Revert "Revert "Make Date.parse work""
This reverts commit 445994f962
.
12 vuotta sitten
Adrian Short
445994f962
Revert "Make Date.parse work"
This reverts commit e8b5147b6c
.
12 vuotta sitten
Adrian Short
e8b5147b6c
Make Date.parse work
12 vuotta sitten
Adrian Short
97d77da9cc
Sort candidate's candidacies in date order. Fix #7
This needs to be written as an SQL query as there's no way I can see in
DataMapper to order a result set by a column in a joined table (the
election date).
12 vuotta sitten
Adrian Short
632db20485
Add number of candidates in each district to districts contested table; make both tables easy to copy and paste
12 vuotta sitten
Adrian Short
e5db0c4520
Add seats won and total number of candidates; Fix SQL incompatibility with Postgres
12 vuotta sitten
Adrian Short
8c2c4bbede
Add votes by party table
12 vuotta sitten
Adrian Short
1ffa74ed37
Round percentages to zero decmimal places
12 vuotta sitten
Adrian Short
59347cc73e
Added links to this election's body and previous/next elections for this body
13 vuotta sitten
Adrian Short
84e1975814
Ensure elections and districts are sorted correctly
13 vuotta sitten
Adrian Short
1a16273242
Postgres requires all selected columns to be used in aggregate functions or specified in the GROUP BY clause
13 vuotta sitten
Adrian Short
bd583f00e1
Hmm
13 vuotta sitten
Adrian Short
c8549804c8
Routes for new views
13 vuotta sitten
Adrian Short
7a48f8a3eb
Added ward map to home page
14 vuotta sitten
Adrian Short
4a3e8d5a6f
Fixed SQL error
14 vuotta sitten
Adrian Short
9a7a99f6c1
Added party colours
14 vuotta sitten
Adrian Short
3e8e53c3ea
Fixed commenting error
14 vuotta sitten
Adrian Short
d650b70ba3
Fixed SQL error
14 vuotta sitten
Adrian Short
f0bd3f36b4
Added council main stats to homepage
14 vuotta sitten
Adrian Short
11f1a4f6d0
Added ward list to home page
14 vuotta sitten
Adrian Short
a0e00023b7
Minor bugfix
14 vuotta sitten
Adrian Short
4d7a7053a6
Added council election results pages
14 vuotta sitten
Adrian Short
170fe79f5c
Tweaks
14 vuotta sitten
Adrian Short
8526d3eedc
Added results pages for parliamentary elections
14 vuotta sitten
Adrian Short
b444ba7a84
Added 404 Not Found page
14 vuotta sitten
Adrian Short
f849c5872d
Added slugs for wards and /wards ward list page
14 vuotta sitten
Adrian Short
4a9d89bf2c
Added caching for postcode API calls to 'postcodes' DB table
14 vuotta sitten
Adrian Short
ed3f23628d
Tidied up app.rb by using chained model associations properly
14 vuotta sitten
Adrian Short
deb1bb8a7c
Added error checking for invalid postcodes and postcodes outside Sutton borough
14 vuotta sitten
Adrian Short
45aac13717
Minor text improvements
14 vuotta sitten
Adrian Short
cbb80972af
Added print stylesheet, parliament elections page. Moved voter registration text to a partial.
14 vuotta sitten
Adrian Short
1c0fc5e1ea
Added TypeKit fonts. Text and layout changes.
14 vuotta sitten
Adrian Short
bc612a7b86
Minor bugfix in app.rb
14 vuotta sitten
Adrian Short
ab294690e2
Added parliamentary candidates. Text and style changes
14 vuotta sitten
Adrian Short
afd45278bd
Text improvements
14 vuotta sitten
Adrian Short
5487a0e7c4
Minor bugfix in app.rb
14 vuotta sitten
Adrian Short
69b3285ba1
Fixed invalid layout. Text changes.
14 vuotta sitten
Adrian Short
d86a4b18b8
Got the candidates to display on each ward page
14 vuotta sitten
Adrian Short
200d9a89fd
Moved model code to /lib. Added start of candidate listings in wards and ward listing on home page
14 vuotta sitten
Adrian Short
e6eee3b89d
Text additions. Moved to pat gem. Added Datamapper code
14 vuotta sitten
Adrian Short
a84a4b501e
Added about.haml, style improvements
14 vuotta sitten
Adrian Short
f24adf7fb0
Moved templates to /views
14 vuotta sitten
Adrian Short
932d474e7e
Removed most credits
14 vuotta sitten
Adrian Short
4cd1a58350
Minor layout/style changes
14 vuotta sitten
Adrian Short
d8ae2aed66
Added stylesheet
14 vuotta sitten
Adrian Short
27173076c9
Initial commit
14 vuotta sitten