From b335730817e096bb4c68e5e4a4a2a3ec29b25243 Mon Sep 17 00:00:00 2001 From: Maximiliano Perez Coto Date: Wed, 13 Jul 2016 20:56:54 -0300 Subject: Fix "Unsubscribe" link in notification emails that is triggered by anti-virus * Created a force=true param that will continue with the previous behaviour of the unsubscribe method * Created a filter for not-logged users so they see a unsubsribe confirmation page * Added the List-Unsubscribe header on emails so the email client can display it on top --- app/views/sent_notifications/unsubscribe.html.haml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 app/views/sent_notifications/unsubscribe.html.haml (limited to 'app/views/sent_notifications') diff --git a/app/views/sent_notifications/unsubscribe.html.haml b/app/views/sent_notifications/unsubscribe.html.haml new file mode 100644 index 00000000000..568d2ac3af1 --- /dev/null +++ b/app/views/sent_notifications/unsubscribe.html.haml @@ -0,0 +1,4 @@ +%h3.page-title + Are you sure you want to unsubscribe from this thread? + + = link_to "Unsubscribe", unsubscribe_sent_notification_path(@sent_notification, force: true), class: 'btn btn-primary wide' -- cgit v1.2.3