##// END OF EJS Templates
Rails3: view: mail: html_safe for header and footer...
Toshi MARUYAMA -
r8774:c495dba18a91
parent child
Show More
@@ -1,33 +1,33
1 <html>
1 <html>
2 <head>
2 <head>
3 <style>
3 <style>
4 body {
4 body {
5 font-family: Verdana, sans-serif;
5 font-family: Verdana, sans-serif;
6 font-size: 0.8em;
6 font-size: 0.8em;
7 color:#484848;
7 color:#484848;
8 }
8 }
9 h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
9 h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
10 h1 { font-size: 1.2em; }
10 h1 { font-size: 1.2em; }
11 h2, h3 { font-size: 1.1em; }
11 h2, h3 { font-size: 1.1em; }
12 a, a:link, a:visited { color: #2A5685;}
12 a, a:link, a:visited { color: #2A5685;}
13 a:hover, a:active { color: #c61a1a; }
13 a:hover, a:active { color: #c61a1a; }
14 a.wiki-anchor { display: none; }
14 a.wiki-anchor { display: none; }
15 hr {
15 hr {
16 width: 100%;
16 width: 100%;
17 height: 1px;
17 height: 1px;
18 background: #ccc;
18 background: #ccc;
19 border: 0;
19 border: 0;
20 }
20 }
21 .footer {
21 .footer {
22 font-size: 0.8em;
22 font-size: 0.8em;
23 font-style: italic;
23 font-style: italic;
24 }
24 }
25 </style>
25 </style>
26 </head>
26 </head>
27 <body>
27 <body>
28 <span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header) %></span>
28 <span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header).html_safe %></span>
29 <%= yield %>
29 <%= yield %>
30 <hr />
30 <hr />
31 <span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer) %></span>
31 <span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer).html_safe %></span>
32 </body>
32 </body>
33 </html>
33 </html>
General Comments 0
You need to be logged in to leave comments. Login now