blob: 7a11f70e1125323daf8081586f00c27ab935fcdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<% @title = 'Spam Addresses' %>
<h1><%= @title %></h1>
<div class="row">
<div class="span12">
<p>
Incoming mail that gets redirected to the holding pen will be
rejected if it is sent <code>To:</code> an address on this
list.
</p>
</div>
</div>
<hr />
<div class="row">
<div class="span12">
<%= form_for(@spam_address, :url => admin_spam_addresses_path, :html => { :class => 'form-inline' }) do |f| -%>
<%= error_messages_for @spam_address %>
<%= f.text_field :email, :class => 'input-xxlarge', :placeholder => 'Enter email' %>
<%= f.submit 'Add Spam Address', :class => 'btn btn-warning' %>
<% end -%>
</div>
</div>
<hr />
<% if @spam_addresses.any? %>
<div class="row">
<table class="table table-hover span12">
<thead>
<tr>
<th>Email</th>
<th></th>
</tr>
</thead>
<tbody>
<% @spam_addresses.each do |spam| %>
<tr>
<td><%= spam.email %></td>
<td><%= link_to 'Remove', admin_spam_address_path(spam),
:method => :delete,
:confirm => 'This is permanent! Are you sure?',
:class => 'btn btn-mini btn-danger' %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
<% end %>
|