[IpSearch] Add with_history to the user/ip toggle path

Just something I found annoying while playing around with it
This commit is contained in:
Earlopain 2021-11-10 17:36:58 +01:00
parent e9b8cbf383
commit ef9ef25ea2
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<p><%= link_to "Search for users with these IP addresses", moderator_ip_addrs_path(:search => {:ip_addr => @results[:ip_addrs].reject{|ip| ip == "127.0.0.1"}.join(",")}) %></p>
<p><%= link_to "Search for users with these IP addresses", moderator_ip_addrs_path(search: {ip_addr: @results[:ip_addrs].reject{|ip| ip == "127.0.0.1"}.join(","), with_history: params[:search][:with_history]}) %></p>
<table class="striped">
<thead>

View File

@ -1,4 +1,4 @@
<p><%= link_to "Search for IP addresses with these users", moderator_ip_addrs_path(:search => {:user_id => @results[:users].map { |user_id, _| user_id }.join(",")}) %></p>
<p><%= link_to "Search for IP addresses with these users", moderator_ip_addrs_path(search: {user_id: @results[:users].map { |user_id, _| user_id }.join(","), with_history: params[:search][:with_history]}) %></p>
<table class="striped">
<thead>