Include user profile link in IP search results
This commit is contained in:
@@ -5,13 +5,15 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>User</th>
|
<th>User</th>
|
||||||
<th>Number of Occurrences</th>
|
<th>Number of Occurrences</th>
|
||||||
|
<th/>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @results.each do |user_id, count| %>
|
<% @results.each do |user_id, count| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= link_to User.id_to_name(user_id), moderator_ip_addrs_path(:search => {:user_id => user_id}) %></td>
|
<td><%= link_to User.id_to_name(user_id), user_path(user_id) %></td>
|
||||||
<td><%= count %></td>
|
<td><%= count %></td>
|
||||||
|
<td><%= link_to "Show IP addresses", moderator_ip_addrs_path(:search => {:user_id => user_id}) %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user