Show More
@@ -1,102 +1,106 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | 3 | ## headers we additionally can set for email |
|
4 | 4 | <%def name="headers()" filter="n,trim"></%def> |
|
5 | 5 | |
|
6 | 6 | <%def name="plaintext_footer()"> |
|
7 | 7 | ${_('This is a notification from RhodeCode. %(instance_url)s') % {'instance_url': instance_url}} |
|
8 | 8 | </%def> |
|
9 | 9 | |
|
10 |
<%def name="body_plaintext()" filter="n,trim"> |
|
|
10 | <%def name="body_plaintext()" filter="n,trim"> | |
|
11 | ## this example is not called itself but overridden in each template | |
|
12 | ## the plaintext_footer should be at the bottom of both html and text emails | |
|
13 | ${self.plaintext_footer()} | |
|
14 | </%def> | |
|
11 | 15 | |
|
12 | 16 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
13 | 17 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|
14 | 18 | <head> |
|
15 | 19 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
16 | 20 | <meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
|
17 | 21 | <title>${self.subject()}</title> |
|
18 | 22 | <style type="text/css"> |
|
19 | 23 | /* Based on The MailChimp Reset INLINE: Yes. */ |
|
20 | 24 | #outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */ |
|
21 | 25 | body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;} |
|
22 | 26 | /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/ |
|
23 | 27 | .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */ |
|
24 | 28 | .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} |
|
25 | 29 | /* Forces Hotmail to display normal line spacing. More on that: http://www.emailonacid.com/forum/viewthread/43/ */ |
|
26 | 30 | #backgroundTable {margin:0; padding:0; line-height: 100% !important;} |
|
27 | 31 | /* End reset */ |
|
28 | 32 | |
|
29 | 33 | /* defaults for images*/ |
|
30 | 34 | img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;} |
|
31 | 35 | a img {border:none;} |
|
32 | 36 | .image_fix {display:block;} |
|
33 | 37 | |
|
34 | 38 | body {line-height:1.2em;} |
|
35 | 39 | p {margin: 0 0 20px;} |
|
36 | 40 | h1, h2, h3, h4, h5, h6 {color:#323232!important;} |
|
37 | 41 | a {color:#427cc9;text-decoration:none;outline:none;cursor:pointer;} |
|
38 | 42 | a:focus {outline:none;} |
|
39 | 43 | a:hover {color: #305b91;} |
|
40 | 44 | h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color:#427cc9!important;text-decoration:none!important;} |
|
41 | 45 | h1 a:active, h2 a:active, h3 a:active, h4 a:active, h5 a:active, h6 a:active {color: #305b91!important;} |
|
42 | 46 | h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {color: #305b91!important;} |
|
43 | 47 | table {font-size:13px;border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;} |
|
44 | 48 | table td {padding:.65em 1em .65em 0;border-collapse:collapse;vertical-align:top;text-align:left;} |
|
45 | 49 | input {display:inline;border-radius:2px;border-style:solid;border: 1px solid #dbd9da;padding:.5em;} |
|
46 | 50 | input:focus {outline: 1px solid #979797} |
|
47 | 51 | @media only screen and (-webkit-min-device-pixel-ratio: 2) { |
|
48 | 52 | /* Put your iPhone 4g styles in here */ |
|
49 | 53 | } |
|
50 | 54 | |
|
51 | 55 | /* Android targeting */ |
|
52 | 56 | @media only screen and (-webkit-device-pixel-ratio:.75){ |
|
53 | 57 | /* Put CSS for low density (ldpi) Android layouts in here */ |
|
54 | 58 | } |
|
55 | 59 | @media only screen and (-webkit-device-pixel-ratio:1){ |
|
56 | 60 | /* Put CSS for medium density (mdpi) Android layouts in here */ |
|
57 | 61 | } |
|
58 | 62 | @media only screen and (-webkit-device-pixel-ratio:1.5){ |
|
59 | 63 | /* Put CSS for high density (hdpi) Android layouts in here */ |
|
60 | 64 | } |
|
61 | 65 | /* end Android targeting */ |
|
62 | 66 | |
|
63 | 67 | </style> |
|
64 | 68 | |
|
65 | 69 | <!-- Targeting Windows Mobile --> |
|
66 | 70 | <!--[if IEMobile 7]> |
|
67 | 71 | <style type="text/css"> |
|
68 | 72 | |
|
69 | 73 | </style> |
|
70 | 74 | <![endif]--> |
|
71 | 75 | |
|
72 | 76 | <!--[if gte mso 9]> |
|
73 | 77 | <style> |
|
74 | 78 | /* Target Outlook 2007 and 2010 */ |
|
75 | 79 | </style> |
|
76 | 80 | <![endif]--> |
|
77 | 81 | </head> |
|
78 | 82 | <body> |
|
79 | 83 | <!-- Wrapper/Container Table: Use a wrapper table to control the width and the background color consistently of your email. Use this approach instead of setting attributes on the body tag. --> |
|
80 | 84 | <table cellpadding="0" cellspacing="0" border="0" id="backgroundTable" align="left" style="margin:1%;width:97%;padding:0;font-family:sans-serif;font-weight:100;border:1px solid #dbd9da"> |
|
81 | 85 | <tr> |
|
82 | 86 | <td valign="top" style="padding:0;"> |
|
83 | 87 | <table cellpadding="0" cellspacing="0" border="0" align="left" width="100%"> |
|
84 | 88 | <tr><td style="width:100%;padding:7px;background-color:#202020" valign="top"> |
|
85 | 89 | <a style="width:100%;height:100%;display:block;color:#eeeeee;text-decoration:none;" href="${instance_url}"> |
|
86 | 90 | ${_('RhodeCode')} |
|
87 | 91 | % if c.rhodecode_name: |
|
88 | 92 | - ${c.rhodecode_name} |
|
89 | 93 | % endif |
|
90 | 94 | </a> |
|
91 | 95 | </td></tr> |
|
92 | 96 | <tr><td style="padding:15px;" valign="top">${self.body()}</td></tr> |
|
93 | 97 | </table> |
|
94 | 98 | </td> |
|
95 | 99 | </tr> |
|
96 | 100 | </table> |
|
97 | 101 | <!-- End of wrapper table --> |
|
98 | 102 | <p><a style="margin-top:15px;margin-left:1%;font-family:sans-serif;font-weight:100;font-size:11px;display:block;color:#666666;text-decoration:none;" href="${instance_url}"> |
|
99 | 103 | ${self.plaintext_footer()} |
|
100 | 104 | </a></p> |
|
101 | 105 | </body> |
|
102 | 106 | </html> |
General Comments 0
You need to be logged in to leave comments.
Login now