fixes #2478: Add links for easy opt-out of emails

This commit is contained in:
r888888888
2015-09-03 17:03:03 -07:00
parent d7b0d2a7e5
commit 4c5e7a2708
9 changed files with 56 additions and 5 deletions

View File

@@ -0,0 +1 @@
<p>You have been unsubscribed from all email notifications.</p>

View File

@@ -0,0 +1,9 @@
<h1>Unsubscribe</h1>
<p>Do you wish to stop receiving all email notifications?</p>
<%= form_tag(maintenance_user_email_notification_path, :method => "delete") do %>
<%= hidden_field_tag "sig", params[:sig] %>
<%= hidden_field_tag "user_id", params[:user_id] %>
<%= submit_tag "Yes" %>
<% end %>