HTML e-mails for UserMailer (#6256)
- premailer gem to turn CSS into inline styles automatically - rework UserMailer templates - reword UserMailer templates
This commit is contained in:
parent
7861c5f108
commit
5276c0a090
104 changed files with 848 additions and 706 deletions
55
app/views/layouts/mailer.html.haml
Normal file
55
app/views/layouts/mailer.html.haml
Normal file
|
@ -0,0 +1,55 @@
|
|||
!!!
|
||||
%html{ lang: I18n.locale }
|
||||
%head
|
||||
%meta{ 'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=utf-8' }/
|
||||
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, shrink-to-fit=no' }
|
||||
|
||||
%title/
|
||||
|
||||
= stylesheet_pack_tag 'mailer'
|
||||
%body
|
||||
%table.email-table{ cellspacing: 0, cellpadding: 0 }
|
||||
%tbody
|
||||
%tr
|
||||
%td.email-body.email-start
|
||||
.email-container
|
||||
%table.content-section{ cellspacing: 0, cellpadding: 0 }
|
||||
%tbody
|
||||
%tr
|
||||
%td.content-cell.header
|
||||
.email-row
|
||||
.col-6
|
||||
%table.column{ cellspacing: 0, cellpadding: 0 }
|
||||
%tbody
|
||||
%tr
|
||||
%td.column-cell
|
||||
= link_to root_url do
|
||||
= image_tag asset_pack_path('logo_full.svg'), height: 34, class: 'logo'
|
||||
|
||||
= yield
|
||||
|
||||
%table.email-table{ cellspacing: 0, cellpadding: 0 }
|
||||
%tbody
|
||||
%tr
|
||||
%td.email-body.email-end
|
||||
.email-container
|
||||
%table.content-section{ cellspacing: 0, cellpadding: 0 }
|
||||
%tbody
|
||||
%tr
|
||||
%td.content-cell.content-end
|
||||
!= " "
|
||||
%tr
|
||||
%td.blank-cell.footer
|
||||
.email-row
|
||||
.col-4
|
||||
%table.column{ cellspacing: 0, cellpadding: 0 }
|
||||
%tbody
|
||||
%td.column-cell
|
||||
%p= t 'about.hosted_on', domain: site_hostname
|
||||
%p= link_to t('application_mailer.notification_preferences'), settings_notifications_url
|
||||
.col-2
|
||||
%table.column{ cellspacing: 0, cellpadding: 0 }
|
||||
%tbody
|
||||
%td.column-cell.text-right
|
||||
= link_to root_url do
|
||||
= image_tag asset_pack_path('logo_transparent.svg'), height: 24
|
1
app/views/layouts/plain_mailer.html.haml
Normal file
1
app/views/layouts/plain_mailer.html.haml
Normal file
|
@ -0,0 +1 @@
|
|||
= yield
|
Loading…
Add table
Add a link
Reference in a new issue