From: John Dong Date: Fri, 31 Aug 2007 19:31:12 +0000 (-0400) Subject: Merged jdong X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/6ee6b1233d213f26c514504e78cd06b1de737943?hp=2ee3731fd7cc776524f44005a99035d01168e6c0 Merged jdong --- diff --git a/app/views/layouts/frontpage.rhtml b/app/views/layouts/frontpage.rhtml index de173c2..d5a5f01 100644 --- a/app/views/layouts/frontpage.rhtml +++ b/app/views/layouts/frontpage.rhtml @@ -24,7 +24,7 @@   <%= link_to("sign up", :controller => "account", :action => "signup")%> <% end -%> -   <%= link_to ("help/about", :controller => "site", +   <%= link_to("help/about", :controller => "site", :action => 'about')%>

selectricity: voting machinery for the masses

diff --git a/app/views/layouts/main.rhtml b/app/views/layouts/main.rhtml index 74ad018..1542b84 100644 --- a/app/views/layouts/main.rhtml +++ b/app/views/layouts/main.rhtml @@ -6,7 +6,8 @@ <%= 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" %> diff --git a/app/views/quickvote/_results_sidebar.rhtml b/app/views/quickvote/_results_sidebar.rhtml index 37776b8..773db65 100644 --- a/app/views/quickvote/_results_sidebar.rhtml +++ b/app/views/quickvote/_results_sidebar.rhtml @@ -4,7 +4,7 @@

This election was run using: <%= ELECTION_TYPES[@election.election_method] %>

-

View results with other methods:
+

View results using other methods:
<% type_hash = {}; ELECTION_TYPES.each {|k,v| type_hash[v] = k} %> <%= select_tag 'election_type_select', options_for_select(type_hash, @election.election_method) %>

@@ -39,6 +39,6 @@ Event.observe(method_select, 'change', show_results_for);

Voter Report

-

<%= link_to "[View All Voters: Map and Other Info]", :controller => "quickvote", +

<%= link_to "[Map/List of Voters]", :controller => "quickvote", :action => "list_voters", :id => @election.id %>

diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml index 3ba74f5..4c91538 100644 --- a/app/views/quickvote/results.rhtml +++ b/app/views/quickvote/results.rhtml @@ -25,7 +25,7 @@

Number of voters:

- <%= @election.voters.reject {|v| not v.voted? }.length %> (see below for details) + <%= @election.voters.reject {|v| not v.voted? }.length %>
<%= render :partial => 'result_box',