]> projects.mako.cc - selectricity/blobdiff - app/views/quickvote/list_voters.rhtml
removed unused stuff from the db/create
[selectricity] / app / views / quickvote / list_voters.rhtml
index ea276d7b6a7d50570ae059e5348ba82ca6b8b2ab..cdfc049ae28808cbd5331e63d3f0383b2ba3fdcd 100644 (file)
             end
             
             %>
             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 %>
       </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) %>
           <%= "No additional information" %>
         <% else %>
           <%= h(org) %>

Benjamin Mako Hill || Want to submit a patch?