-
- <%= text_field_tag "search[user_id]", params[:user_ids] %>
+
+ <%= text_field_tag "search[user_name]", params[:user_names] %>
+ Separate with commas
<%= submit_tag "Search" %>
diff --git a/app/views/moderator/ip_addrs/_ip_listing.erb b/app/views/moderator/ip_addrs/_ip_listing.erb
new file mode 100644
index 000000000..2529a33bd
--- /dev/null
+++ b/app/views/moderator/ip_addrs/_ip_listing.erb
@@ -0,0 +1,18 @@
+<%= link_to "Perform another search for accounts associated with these IP addresses", moderator_ip_addrs_path(:search => {:ip_addr => @results.map{|k, count| k}.join(",")}) %>
+
+
+
+
+
IP Address
+
Number of Occurrences
+
+
+
+ <% @results.each do |ip_address, count| %>
+
+
<%= ip_address %>
+
<%= count %>
+
+ <% end %>
+
+
diff --git a/app/views/moderator/ip_addrs/_user_listing.erb b/app/views/moderator/ip_addrs/_user_listing.erb
new file mode 100644
index 000000000..0586457fe
--- /dev/null
+++ b/app/views/moderator/ip_addrs/_user_listing.erb
@@ -0,0 +1,20 @@
+<%= link_to "Perform another search for IP addresses associated with these accounts", moderator_ip_addrs_path(:search => {:user_id => @results.map{|k, count| k}.join(",")}) %>
+
+
+
+
+
User
+
User ID
+
Number of Occurrences
+
+
+
+ <% @results.each do |user_id, count| %>
+
+
<%= link_to_user User.find(user_id) %>
+
<%= user_id %>
+
<%= count %>
+
+ <% end %>
+
+
\ No newline at end of file
diff --git a/app/views/moderator/ip_addrs/index.html.erb b/app/views/moderator/ip_addrs/index.html.erb
index 3fa612049..bca873222 100644
--- a/app/views/moderator/ip_addrs/index.html.erb
+++ b/app/views/moderator/ip_addrs/index.html.erb
@@ -2,22 +2,11 @@