Adrian Short
6f970e581b
Merge Labour/Co-operative candidacies into Labour. Fixes #12
pirms 10 gadiem
Adrian Short
a84fb9b914
Add results source docs and cleaning/importing scripts
pirms 10 gadiem
Adrian Short
88db43af3e
Add results importer for TSV files
pirms 10 gadiem
Adrian Short
7c04a2e593
Ignore .ruby-gemset
pirms 10 gadiem
Adrian Short
be0d1e0822
Specifically target Ruby 1.9.3 because data_mapper isn't compatible with later rubies (e.g. 2.0.0).
pirms 10 gadiem
Adrian Short
743d5684ad
Add Procfile
pirms 10 gadiem
Adrian Short
7457e8a3ea
Add Unicorn server
pirms 10 gadiem
Adrian Short
c933ad22af
Add empty robots.txt to avoid 404s
pirms 10 gadiem
Adrian Short
ac8d1eb4bb
Pass election date as command line option; prevent running on byelections; tidy output
pirms 11 gadiem
Adrian Short
0d89bb8517
Clarify column semantics
pirms 11 gadiem
Adrian Short
54fa2cf1c3
Use bound parameters
pirms 11 gadiem
Adrian Short
63aa315ecd
Update my URL
pirms 11 gadiem
Adrian Short
c3ce6fdc4e
Add schema diagram
pirms 11 gadiem
Adrian Short
1a27c89b11
Use postgres for dev database
pirms 11 gadiem
Adrian Short
6b388b1242
Add indexes
pirms 11 gadiem
Adrian Short
4756386df2
Add root path config
pirms 11 gadiem
Adrian Short
37d3805187
Remove redundant gems (e.g. sqlite)
pirms 11 gadiem
Adrian Short
0d9b08e0d7
Add letter index to top of candidates' page. Closes #10
pirms 12 gadiem
Adrian Short
6883b77410
Fix Postgres/sqlite type error by using Postgres, closes #7
pirms 12 gadiem
Adrian Short
c9c36dba7d
Fix date parsing (it should be a Time not Date object)
pirms 12 gadiem
Adrian Short
3ed6ae3cc6
Remove pat gem
pirms 12 gadiem
Adrian Short
a4522e9f9c
Remove ruby declaration as Heroku bamboo ignores it anyway (and uses bundler 1.0.7)
pirms 12 gadiem
Adrian Short
2b3c645163
Use ruby 1.9.2 for compatibility with Heroku bamboo stack
pirms 12 gadiem
Adrian Short
483fed8b63
Delete .gems
pirms 12 gadiem
Adrian Short
85f0aef0f8
Add Gemfile
pirms 12 gadiem
Adrian Short
1250728fb6
Revert "Revert "Revert "Make Date.parse work"""
This reverts commit 864478f2a5
.
pirms 12 gadiem
Adrian Short
864478f2a5
Revert "Revert "Make Date.parse work""
This reverts commit 445994f962
.
pirms 12 gadiem
Adrian Short
445994f962
Revert "Make Date.parse work"
This reverts commit e8b5147b6c
.
pirms 12 gadiem
Adrian Short
e8b5147b6c
Make Date.parse work
pirms 12 gadiem
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).
pirms 12 gadiem
Adrian Short
afe5ae8079
Remove unnecessary span elements
pirms 12 gadiem
Adrian Short
eb76a64a2f
Add space between election kind and date
pirms 12 gadiem
Adrian Short
06e4cc9e8a
Text edit
pirms 12 gadiem
Adrian Short
d4b4a0646d
Remove "ward"/"constituency" to make table easier to read; make table easier to copy/paste
pirms 12 gadiem
Adrian Short
632db20485
Add number of candidates in each district to districts contested table; make both tables easy to copy and paste
pirms 12 gadiem
Adrian Short
08f9741dac
Make it easy for users to copy/paste values from tables
Ensure every table cell contains something, even if it's just a
nonbreaking space.
pirms 12 gadiem
Adrian Short
e5db0c4520
Add seats won and total number of candidates; Fix SQL incompatibility with Postgres
pirms 12 gadiem
Adrian Short
8c2c4bbede
Add votes by party table
pirms 12 gadiem
Adrian Short
3d7fbb6ffc
Remove contact details
pirms 12 gadiem
Adrian Short
1ffa74ed37
Round percentages to zero decmimal places
pirms 12 gadiem
Adrian Short
26a54df6c9
Improve layout of election links
pirms 12 gadiem
Adrian Short
272bd99948
Added comments
pirms 13 gadiem
Adrian Short
7e710484a3
Bugfixed past/future elections not showing properly
pirms 13 gadiem
Adrian Short
bc1087c24c
Added Poll model
pirms 13 gadiem
Adrian Short
b1c505eaa5
Removed Candidacy.elected attribute as it was effectively a duplicate of Candidacy.seats
pirms 13 gadiem
Adrian Short
71e10fcbce
Easy way to merge duplicate candidates
pirms 13 gadiem
Adrian Short
ba2f3b11e3
Added links for bodies and candidates
pirms 13 gadiem
Adrian Short
59347cc73e
Added links to this election's body and previous/next elections for this body
pirms 13 gadiem
Adrian Short
1dd9d492be
Improved copy
pirms 13 gadiem
Adrian Short
84e1975814
Ensure elections and districts are sorted correctly
pirms 13 gadiem