field" bug fixes.
else
# record the ip address for posterity
- @voter.ipaddress = request.env["REMOTE_ADDR"]
+ @voter.ipaddress = request.env["HTTP_X_FORWARDED_FOR"]
@voter.save
# toggle the confirmation bit
@condorcet_result = PureCondorcetVote.new(preference_tally).result
@ssd_result = CloneproofSSDVote.new(preference_tally).result
@borda_result = BordaVote.new(preference_tally).result
- @runoff_result = InstantRunoffVote.new(preference_tally).result
+ #@runoff_result = InstantRunoffVote.new(preference_tally).result
+ #@runoff_results = PluralityVote.new(preference_tally).result
+
@candidates = {}
@election.candidates.each {|c| @candidates[c.id] = c}
<div class="resultbox">
<h3>Instant Runoff (IRV) Results</h3>
-<%= render :partial => 'result', :object => @runoff_result %>
<div class="rbmoreinfo"
<h4>About Instant Runoff Voting</h4>
<th>Vote</th>
</tr>
<% for voter in @election.voters %>
+ <% next unless voter.voted? %>
<tr>
<td><%= voter.ipaddress %></td>
<td><%= `host #{voter.ipaddress}`.sub(/^.*pointer (.*)\.$/, '\1') %></td>
<div class="button-bar">
<p><%= submit_tag 'Login' %></p>
- <p><%= link_to 'Register for an account', :controller => 'user', :action => 'signup' %></p>
+<!-- <p><%= link_to 'Register for an account', :controller =>
+'user', :action => 'signup' %></p> -->
<p><%= link_to 'Lost or forgot your password?', :controller => 'user', :action => 'forgot_password' %></p>
+
+ <p>Unfortunately, HyperChad is currently being tested and new
+ accounts for full votes (i.e., non-<em>QuickVotes</em>) can not
+ be automatically created. If you are interested in using HyperChad to
+ run an organizational election, contact <a
+ href="http://mako.cc/contact.html">Benjamin Mako Hill</a>.</p>
+
</div>
<%= end_form_tag %>