]> projects.mako.cc - selectricity/commit
Created a partial to DRY the aja voting method. Modified the voter class to
author<jlsharps@mit.edu> <>
Wed, 29 Aug 2007 22:06:16 +0000 (18:06 -0400)
committer<jlsharps@mit.edu> <>
Wed, 29 Aug 2007 22:06:16 +0000 (18:06 -0400)
commit8f23a174c70223831055e1498b50c3ba260858fe
treeff5242490251850c22a0e38f167ec661be53f23a
parent94f498a0718776efa90193c918c6dd22f51329ac
Created a partial to DRY the aja voting method. Modified the voter class to
have both a FullVoter and QuickVoter `types`. Also changed the index and review
methods so that they are more error resistant in the face of ajax voting.
Application.rb now includes the sort_candidates method from
quickvote_controller so all election types can use it. Also updated the
election results pages so that they don't throw errors any more. (Show and Hide
details)
20 files changed:
app/controllers/application.rb
app/controllers/election_controller.rb
app/controllers/quickvote_controller.rb
app/controllers/voter_controller.rb
app/models/full_voter.rb
app/models/raw_voter_list.rb
app/models/token.rb
app/models/vote.rb
app/models/voter.rb
app/views/election/_candidate_line.rhtml
app/views/election/_candidate_list.rhtml
app/views/election/_overview_form.rhtml
app/views/site/index.rhtml
app/views/voter/_sortable_vote.rhtml [new file with mode: 0644]
app/views/voter/_vote.rhtml
app/views/voter/full_vote.rhtml
app/views/voter/review.rhtml
app/views/voter_notify/votestart.rhtml
db/create.sql
db/schema.rb

Benjamin Mako Hill || Want to submit a patch?