fixes #2530: improved ip addr search
This commit is contained in:
@@ -2,11 +2,24 @@
|
||||
<div id="a-index">
|
||||
<h1>IP Addresses</h1>
|
||||
|
||||
<% if params[:search][:user_id].present? || params[:search][:user_name].present? %>
|
||||
<%= render "ip_listing" %>
|
||||
<% else %>
|
||||
<%= render "user_listing" %>
|
||||
<% end %>
|
||||
<p>The following users share IP addresses used by <%= params[:user_name] %>. This searches across comments, post changes, note changes, pool changes, wiki changes, and dmails over the past 3 months.</p>
|
||||
|
||||
<table class="striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>User</th>
|
||||
<th>Count</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @search.find_common_users.each do |user_id, count| %>
|
||||
<tr>
|
||||
<td><%= link_to User.id_to_name(user_id), users_path(user_id) %></td>
|
||||
<td><%= count %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
<%= form_tag(moderator_ip_addrs_path, :method => :get, :class => "simple_form") do %>
|
||||
<%= search_field "user_name", :label => "User" %>
|
||||
<%= search_field "ip_addr", :label => "IP Addr" %>
|
||||
<%= submit_tag "Search" %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user