mod dashboard: remove ip address search.
Remove the IP address search option from the /moderator/dashboard page. This was an obsolete way of searching for sockpuppet accounts by IP. The /user_events page should be used instead.
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
<div id="ip-addr-search">
|
||||
<%= render "search_ip_addr" %>
|
||||
</div>
|
||||
|
||||
<div id="activity-search">
|
||||
<%= render "search_activity" %>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<%= search_form_for(moderator_ip_addrs_path) do |f| %>
|
||||
<%= f.input :ip_addr, label: "IPs ", hint: "Separate with spaces", input_html: { value: params.dig(:search, :ip_addr) } %>
|
||||
<%= f.input :user_name, label: "Users", hint: "Separate with spaces", input_html: { value: params.dig(:search, :user_name), "data-autocomplete": "user" } %>
|
||||
<%= f.submit "Search" %>
|
||||
<% end %>
|
||||
@@ -1,18 +0,0 @@
|
||||
<p><%= link_to "Search for users with these IP addresses", moderator_ip_addrs_path(:search => {:ip_addr => @results.keys.reject{|ip| ip == "127.0.0.1"}.join(",")}) %></p>
|
||||
|
||||
<table class="striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>IP Address</th>
|
||||
<th>Number of Occurrences</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @results.each do |ip_address, count| %>
|
||||
<tr>
|
||||
<td><%= link_to_ip ip_address %></td>
|
||||
<td><%= count %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1 +0,0 @@
|
||||
<%= raw @results.map {|ip_addr, count| {ip_addr: ip_addr.to_s, count: count}}.to_json %>
|
||||
@@ -1,20 +0,0 @@
|
||||
<p><%= link_to "Search for IP addresses with these users", moderator_ip_addrs_path(:search => {:user_id => @results.map{|user, count| user.id}.join(",")}) %></p>
|
||||
|
||||
<table class="striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>User</th>
|
||||
<th>Number of Occurrences</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @results.each do |user, count| %>
|
||||
<tr>
|
||||
<td><%= link_to_user user %></td>
|
||||
<td><%= count %></td>
|
||||
<td><%= link_to "Show IP addresses", moderator_ip_addrs_path(:search => {:user_id => user.id}) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1 +0,0 @@
|
||||
<%= raw @results.map {|user, count| {user_id: user.id, count: count}}.to_json %>
|
||||
@@ -1,17 +0,0 @@
|
||||
<% page_title "IP Addresses" %>
|
||||
|
||||
<div id="c-moderator-ip-addrs">
|
||||
<div id="a-index">
|
||||
<h1>IP Addresses</h1>
|
||||
|
||||
<% if params[:search][:user_id].present? || params[:search][:user_name].present? %>
|
||||
<div id="p-ip-listing">
|
||||
<%= render "ip_listing" %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div id="p-user-listing">
|
||||
<%= render "user_listing" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,5 +0,0 @@
|
||||
<% if params[:search][:user_id].present? || params[:search][:user_name].present? %>
|
||||
<%= render "ip_listing.json" %>
|
||||
<% else %>
|
||||
<%= render "user_listing.json" %>
|
||||
<% end %>
|
||||
@@ -1,13 +0,0 @@
|
||||
<% page_title "Search IP Addresses" %>
|
||||
|
||||
<div id="c-moderator-ip-addrs">
|
||||
<div id="a-search">
|
||||
<h1>Search IP Addresses</h1>
|
||||
|
||||
<%= search_form_for(moderator_ip_addrs_path) do |f| %>
|
||||
<%= f.input :ip_addr, label: "IPs ", hint: "Separate with spaces", input_html: { value: params.dig(:search, :ip_addr) } %>
|
||||
<%= f.input :user_name, label: "Users", hint: "Separate with spaces", input_html: { value: params.dig(:search, :user_name), "data-autocomplete": "user" } %>
|
||||
<%= f.submit "Search" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user