X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/6ea52ab5c0c29ce60f5a8ee2747eb52f47d5b884..4c5046ffa16ea77da4e4b69517dcb33bc6ec2646:/app/views/quickvote/results.rhtml?ds=inline
diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml
index 799459d..6c1130f 100644
--- a/app/views/quickvote/results.rhtml
+++ b/app/views/quickvote/results.rhtml
@@ -158,7 +158,7 @@ by several other names.
<% begin %>
<% raise ArgumentError.new, "Local Server" if voter.ipaddress == "127.0.0.1" %>
<% raise ArgumentError.new, "XML-RPC Voter" if voter.ipaddress == "XMLRPC Request" %>
- <% w= Whois::Whois.new(IPAddr.new(voter.ipaddress).to_s,true)%>
+ <% w= Whois::Whois.new(IPAddr.new(voter.ipaddress),true)%>
<%=h((w.host == nil or w.host.empty?) ? voter.ipaddress : w.host)%>
|
@@ -169,6 +169,10 @@ by several other names.
<%=h err %>
|
<%=h err%>
+ <% rescue NoMethodError %>
+ DNS Unreachable
+ |
+ DNS Unreachable
<% end %>
|
<%= voter.vote.votestring %> |
@@ -179,7 +183,7 @@ by several other names.
<%= render :partial => 'victories_ties' %>
<%= render :partial => 'pref_table' %>
-<%= image_tag( graph_url( :action => 'votes_per_day', :id => @election ) ) %>
-<%= image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%>
+<%=image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%>
+
<%= image_tag( graph_url( :action => 'borda_bar', :id => @election ) ) %>
<%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %>