Add email subscriptions (#38163)
This commit is contained in:
1 parent
b46d003e20
commit
bcf0718a9a
108 files changed
+839
-516
No files matched your search
@@ -0,0 +1,12 @@
|
||||
- content_for :page_title do
|
||||
= t('.title')
|
||||
|
||||
.simple_form
|
||||
%h1.title= t('.title')
|
||||
%p.lead
|
||||
- if @scope == :email_subscription
|
||||
= t('.email_subscription.confirmation_html', name: display_name(@recipient.account))
|
||||
- elsif @scope == :user
|
||||
= t('.user.confirmation_html', type: I18n.t(@type, scope: 'unsubscriptions.notification_emails'), domain: site_hostname)
|
||||
|
||||
= link_to t('.action'), root_path, class: 'btn'
|
||||
@@ -0,0 +1,26 @@
|
||||
- content_for :page_title do
|
||||
- if @scope == :user
|
||||
= t('.user.title', type: I18n.t(@type, scope: 'unsubscriptions.notification_emails'))
|
||||
- elsif @scope == :email_subscription
|
||||
= t('.email_subscription.title', name: display_name(@recipient.account))
|
||||
|
||||
.simple_form
|
||||
%h1.title
|
||||
- if @scope == :user
|
||||
= t('.user.title', type: I18n.t(@type, scope: 'unsubscriptions.notification_emails'))
|
||||
- elsif @scope == :email_subscription
|
||||
= t('.email_subscription.title', name: display_name(@recipient.account))
|
||||
%p.lead
|
||||
- if @scope == :user
|
||||
= t('.user.confirmation_html')
|
||||
- elsif @scope == :email_subscription
|
||||
= t('.email_subscription.confirmation_html')
|
||||
|
||||
= form_with url: unsubscribe_path do |form|
|
||||
= form.hidden_field :token,
|
||||
value: params[:token]
|
||||
= form.hidden_field :type,
|
||||
value: params[:type]
|
||||
= form.button t('.action'),
|
||||
type: :submit,
|
||||
class: 'btn'
|
||||
Reference in new issue
Block a user