From 5276c0a0900a0886b59a8ead2346540aa381ea46 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 16 Jan 2018 03:29:11 +0100 Subject: HTML e-mails for UserMailer (#6256) - premailer gem to turn CSS into inline styles automatically - rework UserMailer templates - reword UserMailer templates --- .../reset_password_instructions.html.haml | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 app/views/user_mailer/reset_password_instructions.html.haml (limited to 'app/views/user_mailer/reset_password_instructions.html.haml') diff --git a/app/views/user_mailer/reset_password_instructions.html.haml b/app/views/user_mailer/reset_password_instructions.html.haml new file mode 100644 index 000000000..c6a9d4bf6 --- /dev/null +++ b/app/views/user_mailer/reset_password_instructions.html.haml @@ -0,0 +1,60 @@ +%table.email-table{ cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.email-body + .email-container + %table.content-section{ cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.content-cell.hero + .email-row + .col-6 + %table.column{ cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.column-cell.text-center.padded + %table.hero-icon{ align: 'center', cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td + = image_tag asset_pack_path('icon_lock_open.svg') + + %h1= t 'devise.mailer.reset_password_instructions.title' + %p.lead= t 'devise.mailer.reset_password_instructions.explanation' + +%table.email-table{ cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.email-body + .email-container + %table.content-section{ cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.content-cell.content-start + %table.column{ cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.column-cell.button-cell + %table.button{ align: 'center', cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.button-primary + = link_to edit_password_url(@resource, reset_password_token: @token) do + %span= t 'devise.mailer.reset_password_instructions.action' + +%table.email-table{ cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.email-body + .email-container + %table.content-section{ cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.content-cell + .email-row + .col-6 + %table.column{ cellspacing: 0, cellpadding: 0 } + %tbody + %tr + %td.column-cell.text-center.padded + %p= t 'devise.mailer.reset_password_instructions.extra' -- cgit