From 778c62e0b0bb081b8dcf718cf2df4d42a4ef2777 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 9 Dec 2010 16:42:10 -0800 Subject: [PATCH] Use mail css partial --- .../confirmation_instructions.html.haml | 40 +------------------ .../reset_password_instructions.html.haml | 40 +------------------ .../mailer/unlock_instructions.html.haml | 40 +------------------ 3 files changed, 3 insertions(+), 117 deletions(-) diff --git a/app/views/devise/mailer/confirmation_instructions.html.haml b/app/views/devise/mailer/confirmation_instructions.html.haml index ff6cb767d..14eca4254 100644 --- a/app/views/devise/mailer/confirmation_instructions.html.haml +++ b/app/views/devise/mailer/confirmation_instructions.html.haml @@ -2,45 +2,7 @@ %html %head %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/ - :css - body{ - width:600px; - font-family:'Arial','Helvetica',sans-serif; - font-size:14px; - color:#333; - } - #container{ - margin-bottom:25px - min-height:400px; - padding-left:15px; - } - header{ - background-color:#333; - padding: 15px; - margin-bottom: 25px; - } - p{ - padding:5px; - } - p.small{ - font-size:smaller; - color:#999; - font-style:italic; - } - a{ - color:#107FC9; - font-weight:bold; - } - a:hover{ - color: #22AAE0; - } - a:active{ - color: #005D9C; - } - .large_text{ - font-size:21px; - font-family:"Helvetica Neue",Arial,Helvetica,sans-serif; - } + = render :partial => 'notifier/notifier_css' %body %header = image_tag '/images/diaspora_white.png' diff --git a/app/views/devise/mailer/reset_password_instructions.html.haml b/app/views/devise/mailer/reset_password_instructions.html.haml index eaef603d6..c876bfc8d 100644 --- a/app/views/devise/mailer/reset_password_instructions.html.haml +++ b/app/views/devise/mailer/reset_password_instructions.html.haml @@ -2,45 +2,7 @@ %html %head %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/ - :css - body{ - width:600px; - font-family:'Arial','Helvetica',sans-serif; - font-size:14px; - color:#333; - } - #container{ - margin-bottom:25px - min-height:400px; - padding-left:15px; - } - header{ - background-color:#333; - padding: 15px; - margin-bottom: 25px; - } - p{ - padding:5px; - } - p.small{ - font-size:smaller; - color:#999; - font-style:italic; - } - a{ - color:#107FC9; - font-weight:bold; - } - a:hover{ - color: #22AAE0; - } - a:active{ - color: #005D9C; - } - .large_text{ - font-size:21px; - font-family:"Helvetica Neue",Arial,Helvetica,sans-serif; - } + = render :partial => 'notifier/notifier_css' %body %header = image_tag '/images/diaspora_white.png' diff --git a/app/views/devise/mailer/unlock_instructions.html.haml b/app/views/devise/mailer/unlock_instructions.html.haml index e33216249..a5c90b41e 100644 --- a/app/views/devise/mailer/unlock_instructions.html.haml +++ b/app/views/devise/mailer/unlock_instructions.html.haml @@ -2,45 +2,7 @@ %html %head %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/ - :css - body{ - width:600px; - font-family:'Arial','Helvetica',sans-serif; - font-size:14px; - color:#333; - } - #container{ - margin-bottom:25px - min-height:400px; - padding-left:15px; - } - header{ - background-color:#333; - padding: 15px; - margin-bottom: 25px; - } - p{ - padding:5px; - } - p.small{ - font-size:smaller; - color:#999; - font-style:italic; - } - a{ - color:#107FC9; - font-weight:bold; - } - a:hover{ - color: #22AAE0; - } - a:active{ - color: #005D9C; - } - .large_text{ - font-size:21px; - font-family:"Helvetica Neue",Arial,Helvetica,sans-serif; - } + = render :partial => 'notifier/notifier_css' %body %header = image_tag '/images/diaspora_white.png'