aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Florisson2012-09-07 12:51:49 +0200
committerMarc Florisson2012-09-07 12:51:49 +0200
commit1216e32dea850344899826b17861d98a8deb9302 (patch)
tree33ef60505825d488695513e00d9f596bd57da994
parentd22d53075ecb940fdb59cd980ab8f86e40498c35 (diff)
downloadchouette-core-1216e32dea850344899826b17861d98a8deb9302.tar.bz2
add layout for mail
-rw-r--r--app/views/layouts/mailer.html.erb24
-rw-r--r--config/environments/development.rb1
2 files changed, 25 insertions, 0 deletions
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb
new file mode 100644
index 000000000..078e14083
--- /dev/null
+++ b/app/views/layouts/mailer.html.erb
@@ -0,0 +1,24 @@
+<html>
+<head>
+ <title><%= message.subject %></title>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+</head>
+
+<body style="font-family: Verdana, Helvetica, Arial, MS Trebuchet, sans-serif; font-size: 14px; width: 600px; background: #61970B; padding: 15px">
+ <style>
+ h2 { font-size: 18px; }
+ h3 { font-size: 14px; }
+ a { color: black; }
+ </style>
+
+ <h1 style="background: #606; height: 75px; font-size: 24px; font-weight: normal; color: white; padding: 20px 0 0 30px;">Chouette</h1>
+
+ <div style="background: white; margin-bottom: 10px; padding: 15px; -moz-box-shadow: 3px 3px 4px #bbbbbb; -webkit-box-shadow: 3px 3px 4px #BBB; box-shadow: 3px 3px 4px #BBB; border-right: 1px solid #BBB; border-bottom: 1px solid #BBB;">
+ <%= yield %>
+ </div>
+
+ <div style="color: #333333; text-align:center; font-size: 10px;">
+ Envoyé par <a href="/">Chouette</a>
+ </div>
+</body>
+</html>
diff --git a/config/environments/development.rb b/config/environments/development.rb
index a870ebd7d..4cc904bab 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -40,6 +40,7 @@ ChouetteIhm::Application.configure do
}
config.to_prepare do
+ Devise::Mailer.layout "mailer"
chouette_command_script = "tmp/chouette-command/chouette"
if File.exists? chouette_command_script
Chouette::Command.command = "tmp/chouette-command/chouette"