ip search: add quick links & improve usability

#2530
This commit is contained in:
Toks
2015-10-08 01:14:48 -04:00
parent f92cfe3b43
commit 643ab7b2c6
8 changed files with 56 additions and 22 deletions

View File

@@ -2,22 +2,11 @@
<div id="a-index">
<h1>IP Addresses</h1>
<table class="striped">
<thead>
<tr>
<th>Key</th>
<th>Count</th>
</tr>
</thead>
<tbody>
<% @search.execute.each do |k, count| %>
<tr>
<td><%= k %></td>
<td><%= count %></td>
</tr>
<% end %>
</tbody>
</table>
<% if params[:search][:user_id].present? || params[:search][:user_name].present? %>
<%= render "ip_listing" %>
<% else %>
<%= render "user_listing" %>
<% end %>
</div>
</div>