diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-03-31 10:14:29 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-03-31 10:14:29 +0100 |
commit | 6922b3f45ad38a8e52050ca56733b4e950e69cbd (patch) | |
tree | 867e46d9ae152dc9ddeb655a282ed206f090396d | |
parent | 4f84ec8a12479ec8ca96e4a143696b737dba37ca (diff) |
Add link to spam_addresses from show_raw_email
Went with a simple option of just adding the link.
We could add a form which submits the email automatically, but there are
a few cases where this might be more complex:
- If the To: contains more than one email
- If the address is already on the spam list
- Redirecting back to the correct page depending on which form was
submitted
- Additional help text on show_raw_email
-rw-r--r-- | app/views/admin_request/_incoming_message_actions.html.erb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/admin_request/_incoming_message_actions.html.erb b/app/views/admin_request/_incoming_message_actions.html.erb index 4cf099b53..dd50eb047 100644 --- a/app/views/admin_request/_incoming_message_actions.html.erb +++ b/app/views/admin_request/_incoming_message_actions.html.erb @@ -22,6 +22,13 @@ </div> </div> + <div class="control-group"> + <label class="control-label">Mark <code>To:</code> address as spam</label> + <div class="controls"> + <%= link_to 'Spam Addresses', spam_addresses_path %> + </div> + </div> + <%= form_tag admin_incoming_destroy_path, :class => "form form-inline" do %> <div class="control-group"> <label class="control-label" for="destroy_message_<%= incoming_message.id %>">Destroy message</label> |