added ip addr search
This commit is contained in:
22
app/views/moderator/ip_addrs/index.html.erb
Normal file
22
app/views/moderator/ip_addrs/index.html.erb
Normal 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>
|
||||
19
app/views/moderator/ip_addrs/search.html.erb
Normal file
19
app/views/moderator/ip_addrs/search.html.erb
Normal 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>
|
||||
@@ -38,3 +38,4 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render :partial => "posts/partials/common/secondary_links" %>
|
||||
Reference in New Issue
Block a user