added ip addr search

This commit is contained in:
albert
2011-07-29 18:04:50 -04:00
parent 5da43c54f0
commit c8afd34d15
55 changed files with 406 additions and 189 deletions

View File

@@ -0,0 +1,22 @@
<div id="c-moderator-ip-addrs">
<div id="a-index">
<h1>IP Addresses</h1>
<table>
<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>
</div>
</div>

View File

@@ -0,0 +1,19 @@
<div id="c-moderator-ip-addrs">
<div id="a-search">
<h1>IP Address Search</h1>
<%= form_tag(moderator_ip_addrs_path) do %>
<div class="input">
<label>User</label>
<%= text_field :search, :user_name %>
</div>
<div class="input">
<label>IP Addr</label>
<%= text_field :search, :ip_addr %>
</div>
<%= submit_tag %>
<% end %>
</div>
</div>

View File

@@ -38,3 +38,4 @@
</div>
</div>
<%= render :partial => "posts/partials/common/secondary_links" %>