2023-06-12 08:22:46 -04:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('mail_subscriptions.unsubscribe.title')
|
|
|
|
|
|
|
|
.simple_form
|
|
|
|
%h1.title= t('mail_subscriptions.unsubscribe.title')
|
|
|
|
%p.lead
|
2024-01-11 04:32:32 -05:00
|
|
|
= t 'mail_subscriptions.unsubscribe.confirmation_html',
|
|
|
|
domain: content_tag(:strong, site_hostname),
|
|
|
|
type: content_tag(:strong, I18n.t(@type, scope: 'mail_subscriptions.unsubscribe.emails')),
|
|
|
|
email: content_tag(:strong, @user.email),
|
|
|
|
settings_path: settings_preferences_notifications_path
|
2023-06-12 08:22:46 -04:00
|
|
|
|
2024-06-14 05:49:10 -04:00
|
|
|
= form_with url: unsubscribe_path do |form|
|
|
|
|
= form.hidden_field :token,
|
|
|
|
value: params[:token]
|
|
|
|
= form.hidden_field :type,
|
|
|
|
value: params[:type]
|
|
|
|
= form.button t('mail_subscriptions.unsubscribe.action'),
|
|
|
|
type: :submit
|