]> projects.mako.cc - selectricity-live/blobdiff - app/views/quickvote/results.rhtml
Add ability to parse RIPE WHOIS too
[selectricity-live] / app / views / quickvote / results.rhtml
index a2b12068830a7cb0d7d4adde770334d0a425d65c..b82d5e3865f4bd2891e2908c6104e407302277f1 100644 (file)
@@ -160,8 +160,9 @@ by several other names.</p>
         <% w= Whois::Whois.new(IPAddr.new(voter.ipaddress).to_s,true)%>
         <%=(w.host == nil or w.host.empty?) ? "Unknown voter" : w.host%>
       </td>
-  <td>
-      <%= w.search_whois.grep(/^OrgName/)[0].sub(/^OrgName\:/,'').strip %>
+      <td>
+        <%w.search_whois%>
+        <%= (w.all.grep(/^(OrgName|org-name)/)[0] or "").sub(/^(OrgName|org-name)\:/,'').strip -%> - <%=  (w.all.grep(/^(NetName|netname)/)[0] or "").sub(/^(NetName|netname)\:/,'').strip %>
     
     <% rescue ArgumentError => err %>
       <%= err %>

Benjamin Mako Hill || Want to submit a patch?