Merge jdong
authorJohn Dong <jdong@mit.edu>
Fri, 31 Aug 2007 16:59:55 +0000 (12:59 -0400)
committerJohn Dong <jdong@mit.edu>
Fri, 31 Aug 2007 16:59:55 +0000 (12:59 -0400)
app/controllers/quickvote_controller.rb
app/views/quickvote/list_voters.rhtml
lib/whois/whois.rb

index b9c790f40f872fa99048f10aec38cc76abc348a1..cc57bb51d80ff8f825a3d88119ccbf90b4e22ef3 100644 (file)
@@ -185,8 +185,7 @@ class QuickvoteController < ApplicationController
 
       marker = GMarker.new([location.lat,location.lng],
                            :title => "Voter",
-                           :info_window => (voter.ipaddress or "unknown") \
-                                           + "   " + voter.vote.votestring)
+                           :info_window => (voter.ipaddress or "unknown"))
       @map.overlay_init(marker)
     end
   end
index ea276d7b6a7d50570ae059e5348ba82ca6b8b2ab..cdfc049ae28808cbd5331e63d3f0383b2ba3fdcd 100644 (file)
             end
             
             %>
-        <%=h((w.host == nil or w.host.empty?) ? voter.ipaddress : w.host)%>
+        <%=h((w.host == nil or w.host.empty?) ? voter.ipaddress : w.host.reverse.slice(0,30).reverse)%>
       </td>
       <td>
         <%org=(w.all.grep(/^(OrgName|org-name)/)[0] or "").sub(/^(OrgName|org-name)\:/,'').strip+" - "+ (w.all.grep(/^(NetName|netname)/)[0] or "").sub(/^(NetName|netname)\:/,'').strip %>
-        <% if org =~ /IANA/ %>
+        <% if org =~ /asdfasdf/ %>
           <%= "No additional information" %>
         <% else %>
           <%= h(org) %>
index 7cc6e9d1eea43efef502e6ac0d4ea406f156b440..962a399c9283b4a12d054f0dcc6d2506d91caf23 100755 (executable)
@@ -130,7 +130,7 @@ module Whois
             if ip_range.include? self.ip and l[1].length > 0
               return Object.instance_eval("Server::#{l[1]}.new")
             end
-            return Server::Ripe.new
+            return Server::Arin.new
           end
         end
 
@@ -139,7 +139,7 @@ module Whois
           ipv6_list = YAML::load_file(File.dirname(__FILE__) + '/data/ipv6.yaml')
           server = server_with_hash(ipv6_list)
           unless server.kind_of? Server::Server
-            return Server::Ripe.new
+            return Server::Arin.new
           else
             return server
           end

Benjamin Mako Hill || Want to submit a patch?