some fixes to janitor trials, implemented jan trial controller test
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<h1>IP Bans</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>IP Address</th>
|
||||
<th>Banner</th>
|
||||
<th>Reason</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @ip_bans.each do |ip_ban| %>
|
||||
<tr>
|
||||
<td><%= ip_ban.ip_addr %></td>
|
||||
<td><%= ip_ban.creator.name %></td>
|
||||
<td><%= ip_ban.reason %></td>
|
||||
<td><%= link_to "Unban", ip_ban_path(ip_ban), :remote => true, :method => :delete, :confirm => "Do your really want to unban #{ip_ban.creator.name}?" %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<h1>New IP Ban</h1>
|
||||
|
||||
<%= simple_form_for(@ip_ban) do |f| %>
|
||||
<%= f.input :ip_addr %>
|
||||
<%= f.input :reason %>
|
||||
<%= f.button :submit %>
|
||||
<% end %>
|
||||
|
||||
0
app/views/janitor_trials/edit.html.erb
Normal file
0
app/views/janitor_trials/edit.html.erb
Normal file
0
app/views/janitor_trials/index.html.erb
Normal file
0
app/views/janitor_trials/index.html.erb
Normal file
0
app/views/janitor_trials/new.html.erb
Normal file
0
app/views/janitor_trials/new.html.erb
Normal file
Reference in New Issue
Block a user