2023-06-12 15:22:46 +03: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 11:32:32 +02: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 15:22:46 +03:00
|
|
|
|
|
|
|
= form_tag unsubscribe_path, method: :post do
|
|
|
|
= hidden_field_tag :token, params[:token]
|
|
|
|
= hidden_field_tag :type, params[:type]
|
|
|
|
= button_tag t('mail_subscriptions.unsubscribe.action'), type: :submit
|