<mako@atdot.cc> [Wed, 6 Feb 2008 06:38:47 +0000 (01:38 -0500)]
added support for results for full elections
this included a full details page, a pop-up preferences tables, some
general reorganization of things due to new reusing, and several typo
and bug fixing
<mako@atdot.cc> [Thu, 31 Jan 2008 03:05:21 +0000 (22:05 -0500)]
first (mostly) working version of full elections.
Lots of work, the vast majority of it superficial, to get full election
support ready. The creation is still a little rough and results are not
online yet but everything else is good to go.
Extended the COLORS array in graph controller so that elections with multiple
candidates won't have graphs with dangerously similar colors. After 10
candidates though, they're on their own. Also added captions to the pref_tables
of the Schulze method to quickly explain how to read them. Feel free to
edit/move them. I tried to make them quick, explanatory and look-alikes to the
rest of the text, but definitely failed on the look-alike requirement. Please
fix...
Added the forgot password functionality to the voters of Full Elections. Also, modified the votestart e-mail to reflect the new Selectricity home (selectricity.org).
The other election methods will now display the winner they elected in their own
partials when selected. The link to the voter map and host names has been moved
into the side-div and the link name was appended to include more info.
John Dong [Fri, 31 Aug 2007 14:31:12 +0000 (10:31 -0400)]
My first gigantic-blob commit....
* Refactor voter list to a separate page
* Rename mapvoters to list_voters
* Clean up div tags
* Fixed gmap api key syntax to not error out in production
* TODO: Generate a real api key for selectricity.org
* Fixed performance issue with when IANA private addresses timeout DNS request.
The session storage is now done via the database, be sure to relaod your
databases. It seems that the logout error was cured, in that if you reload the
database while logged in, you shouldn't get an error when returning to the
site. I don't know how the session plugin we're using will be working with the
new storage method.
John Dong [Thu, 30 Aug 2007 23:12:35 +0000 (19:12 -0400)]
Commit memcache work. memcache is only enabled in production, and currently only thing cached are election results. At least 5-fold render speed improvement...
Added the Gruff library to the lib/ directory of the the rails folder, and the
environment require statement now uses that one. Made modifcations to Gruff
library to alternate placement of labels and crowded bar graphs. Also made a
table for approval vote method.
John Dong [Thu, 30 Aug 2007 17:29:08 +0000 (13:29 -0400)]
Add IE6 specific hacks CSS that only gets loaded if user agent is MSIE 6.
This sets the background-image to render using DirectX alpha channels to properly transparentize PNG's. Also removes ordering on ordered lists so that we don't get 1. 1. 1. 1. in the dragdrop list.
John Dong [Thu, 30 Aug 2007 15:55:30 +0000 (11:55 -0400)]
Fix full voter addition bug where the regex flunks the trailing \r on middle items in the list. At the same time, make sure to only add a voter to the election if it passes validation. This prevents cases where the voter shows up on the AJAX list but mysteriously disappears after confirming.
Both quickvotes and full-size elections use the same partial in views/voter
('sortable_vote') for the ajax voting. One gimmick seems to be that the button
is appearing above the actual list of candidates which is kinda odd, but
doesn't seem to be affecting wah'ts being committed in anyway. Also made some
modifications to the graphs and the graphs to help with how their displayed in
the new theme, hopefully it looks a litle better. Don't quite know how to
improve the results page further for quickvotes... will try keeping them
uncomputed until people ask for them?