Add ability to email announcements to all users (#33928)
This commit is contained in:
parent
d2ce9a6064
commit
5a100bf38f
20 changed files with 275 additions and 11 deletions
12
app/views/user_mailer/announcement_published.html.haml
Normal file
12
app/views/user_mailer/announcement_published.html.haml
Normal file
|
@ -0,0 +1,12 @@
|
|||
= content_for :heading do
|
||||
= render 'application/mailer/heading',
|
||||
image_url: frontend_asset_url('images/mailer-new/heading/user.png'),
|
||||
title: t('user_mailer.announcement_published.title', domain: site_hostname)
|
||||
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
|
||||
%tr
|
||||
%td.email-body-padding-td
|
||||
%table.email-inner-card-table{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
|
||||
%tr
|
||||
%td.email-inner-card-td.email-prose
|
||||
%p= t('user_mailer.announcement_published.description', domain: site_hostname)
|
||||
= linkify(@announcement.text)
|
7
app/views/user_mailer/announcement_published.text.erb
Normal file
7
app/views/user_mailer/announcement_published.text.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
<%= t('user_mailer.announcement_published.title') %>
|
||||
|
||||
===
|
||||
|
||||
<%= t('user_mailer.announcement_published.description', domain: site_hostname) %>
|
||||
|
||||
<%= @announcement.text %>
|
Loading…
Add table
Add a link
Reference in a new issue