Add unsubscribe link

parent aa31260d
module Emails
module AdminNotification
def send_admin_notification(user_id, subject, body)
email = recipient(user_id)
@unsubscribe_url = public_unsubscribe_url(email: email)
@body = body
mail to: recipient(user_id), subject: subject
mail to: email, subject: subject
end
end
end
\ No newline at end of file
= simple_format @body
\----
%p
Don't want to receive updates from GitLab administrators?
= link_to 'Unsubscribe', @unsubscribe_url
\ No newline at end of file
= h @body
\-----
Don't want to receive updates from GitLab administrators?
== Unsubscribe here: #{@unsubscribe_url}
\ No newline at end of file
%h3.page-title Unsubscribe from Admin notifications
%p
Don't want to receive any updates from your system administrator.
By clicking the confirmation button you'll no longer receive these notifications
%hr
= form_tag public_unsubscribe_path(@email) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment