show.html.haml 662 B

123456789101112
  1. - content_for :page_title do
  2. = t('mail_subscriptions.unsubscribe.title')
  3. .simple_form
  4. %h1.title= t('mail_subscriptions.unsubscribe.title')
  5. %p.lead
  6. = 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)
  7. = form_tag unsubscribe_path, method: :post do
  8. = hidden_field_tag :token, params[:token]
  9. = hidden_field_tag :type, params[:type]
  10. = button_tag t('mail_subscriptions.unsubscribe.action'), type: :submit