Merge pull request #30 from Retrospring/feature-mail-template-revision

PR: mail template revision
This commit is contained in:
Yuki 2015-07-23 12:18:51 +05:30
commit 79cf463cf2
6 changed files with 51 additions and 27 deletions

View File

@ -1,8 +1,9 @@
%p %p{style: "margin:0px;padding:0px"}
Welcome to Welcome to
= succeed ',' do = succeed ',' do
= APP_CONFIG['site_name'] = APP_CONFIG['site_name']
= succeed '!' do = succeed '!' do
= @resource.screen_name = @resource.screen_name
%p You can confirm your account email through the link below: %p  
%p= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http)) %p{style: "margin:0px;padding:0px"} You can confirm your account email through the link below:
%p{style: "margin:0px;padding:0px"}= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http))

View File

@ -1,8 +1,10 @@
%p %p{style: "margin:0px;padding:0px"}
Hello Hello
= succeed '!' = succeed '!' do
= @resource.screen_name = @resource.screen_name
%p Someone (hopefully you) has requested a link to change your password. You can do this through the link below. %p  
%p= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http)) %p{style: "margin:0px;padding:0px"} Someone (hopefully you) has requested a link to change your password. You can do this through the link below.
%p If you didn't request this, please ignore this email. %p{style: "margin:0px;padding:0px"}= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http))
%p Your password won't change until you access the link above and create a new one. %p  
%p{style: "margin:0px;padding:0px"} If you didn't request this, please ignore this email.
%p{style: "margin:0px;padding:0px"} Your password won't change until you access the link above and create a new one.

View File

@ -1,9 +1,9 @@
Hello <%= @resource.screen_name %> Hello <%= @resource.screen_name %>!
Someone (hopefully you) has requested a link to change your password. Someone (hopefully you) has requested a link to change your password.
You can do this by copying the link below and entering it into your browser. You can do this by copying the link below and entering it into your browser.
<%= edit_password_url(@resource, reset_password_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http) %> <%= edit_password_url(@resource, reset_password_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http)) %>
If you didn't request this, please ignore this email. If you didn't request this, please ignore this email.
Your password won't change until you access the link above and create a new one. Your password won't change until you access the link above and create a new one.

View File

@ -1,7 +1,8 @@
%p %p{style: "margin:0px;padding:0px"}
Hello Hello
= succeed '!' = succeed '!' do
= @resource.screen_name = @resource.screen_name
%p Your account has been locked due to an excessive number of unsuccessful sign in attempts. %p &nbsp;
%p Click the link below to unlock your account: %p{style: "margin:0px;padding:0px"} Your account has been locked due to an excessive number of unsuccessful sign in attempts.
%p= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http)) %p{style: "margin:0px;padding:0px"} Click the link below to unlock your account:
%p{style: "margin:0px;padding:0px"}= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http))

View File

@ -1,4 +1,4 @@
Hello <%= @resource.screen_name %> Hello <%= @resource.screen_name %>!
Your account has been locked due to an excessive number of unsuccessful Your account has been locked due to an excessive number of unsuccessful
sign in attempts. You can unlock your account by copying the link below sign in attempts. You can unlock your account by copying the link below

View File

@ -1,8 +1,28 @@
%style{type: "text/css"} p{margin:0;padding:0;}*,div,small,span,body{font-family:Arial;} %html
%div{style: 'background: #5e35b1; padding: 5px; padding-left: 10px; font-size: 25px; color: white; font-family: Arial; width: 800px; margin: 0;'}= APP_CONFIG['site_name'] %head
%div{style: 'border: #5e35b1 5px solid; padding: 5px; border-top: none; background: white; color: black; font-family: Arial; width: 795px; margin: 0;'} :css
= yield body {
%small{style: 'color: grey; display: block; width: 800px; text-align: center;'} font-size: 16px;
margin-top: 0px;
margin-bottom: 0px;
font-family: Arial, sans-serif;
}
p {
margin: 0px;
padding: 0px;
}
%body
%table{cellpadding: 0, cellspacing: 0, border: 5, bordercolor: "#5e35b1", bgcolor: "#5e35b1", style: "font-size:0px;", align: "center", width: "630"}
%tbody
%tr
%td{style: "padding:5px 10px;", align: "center"}
%p{style: "margin:0px;padding:0px"}
%font{color: "#ffffff", size: 6, face: "Arial, sans-serif"}= APP_CONFIG['site_name']
%tr
%td{bgcolor: "#ffffff", style: "padding:10px"}
%font{color: "#000000", size: 4, face: "Arial, sans-serif"}= yield
%p{style:"margin:0px;padding:5px;", align: "center"}
%font{size: 2, color: "#797979", face: "Arial, sans-serif"}
&copy; &copy;
= Time.zone.now.year = Time.zone.now.year
= APP_CONFIG['site_name'] = APP_CONFIG['site_name']