<%= link_to("sign up", :controller => "account",
:action => "signup")%>
<% end -%>
- <%= link_to ("help/about", :controller => "site",
+ <%= link_to("help/about", :controller => "site",
:action => 'about')%>
</div>
<a href="index.html"><h1>selectricity: voting machinery for the masses</h1></a>
<%= stylesheet_link_tag "main", :media => "all" %>
<%= stylesheet_link_tag *(@stylesheets) %>
<%= stylesheet_link_tag "ie6hacks", :media => "all" if \
- request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %>
+ request.methods.include?(:user_agent) and \
+ request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %>
<%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
</head>
<p>This election was run using:
<strong><%= ELECTION_TYPES[@election.election_method] %></strong></p>
-<p>View results with other methods:<br />
+<p>View results using other methods:<br />
<% type_hash = {}; ELECTION_TYPES.each {|k,v| type_hash[v] = k} %>
<%= select_tag 'election_type_select', options_for_select(type_hash, @election.election_method) %></p>
<h2>Voter Report</h2>
-<p><%= link_to "[View All Voters: Map and Other Info]", :controller => "quickvote",
+<p><%= link_to "[Map/List of Voters]", :controller => "quickvote",
:action => "list_voters", :id => @election.id %></p>
<p><strong>Number of voters:</strong></p>
<blockquote>
- <%= @election.voters.reject {|v| not v.voted? }.length %> (see below for details)
+ <%= @election.voters.reject {|v| not v.voted? }.length %>
</blockquote>
<%= render :partial => 'result_box',