NotificationEmailLayout.coffee 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. _ = require("underscore")
  2. module.exports = _.template '''
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <!-- Facebook sharing information tags -->
  8. <meta property="og:title" />
  9. <style type="text/css">
  10. #outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
  11. body{width:100% !important;} .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
  12. body{-webkit-text-size-adjust:none;} /* Prevent Webkit platforms from changing default text sizes. */
  13. body{margin:0; padding:0;}
  14. img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}
  15. table td{border-collapse:collapse;}
  16. #backgroundTable{height:100% !important; margin:0; padding:0; width:100% !important;}
  17. body, #backgroundTable{
  18. /*@editable*/ background-color:#FAFAFA;
  19. }
  20. #templateContainer{
  21. /*@editable*/ border: 1px solid #DDDDDD;
  22. }
  23. h1, .h1{
  24. /*@editable*/ color:#202020;
  25. display:block;
  26. /*@editable*/ font-family:Arial;
  27. /*@editable*/ font-size:34px;
  28. /*@editable*/ font-weight:bold;
  29. /*@editable*/ line-height:100%;
  30. margin-top:0;
  31. margin-right:0;
  32. margin-bottom:10px;
  33. margin-left:0;
  34. /*@editable*/ text-align:left;
  35. }
  36. h2, .h2{
  37. /*@editable*/ color:#202020;
  38. display:block;
  39. /*@editable*/ font-family:Arial;
  40. /*@editable*/ font-size:30px;
  41. /*@editable*/ font-weight:bold;
  42. /*@editable*/ line-height:100%;
  43. margin-top:0;
  44. margin-right:0;
  45. margin-bottom:10px;
  46. margin-left:0;
  47. /*@editable*/ text-align:left;
  48. }
  49. h3, .h3{
  50. /*@editable*/ color:#202020;
  51. display:block;
  52. /*@editable*/ font-family:Arial;
  53. /*@editable*/ font-size:26px;
  54. /*@editable*/ font-weight:bold;
  55. /*@editable*/ line-height:100%;
  56. margin-top:0;
  57. margin-right:0;
  58. margin-bottom:10px;
  59. margin-left:0;
  60. /*@editable*/ text-align:left;
  61. }
  62. /**
  63. * @tab Page
  64. * @section heading 4
  65. * @tip Set the styling for all fourth-level headings in your emails. These should be the smallest of your headings.
  66. * @style heading 4
  67. */
  68. h4, .h4{
  69. /*@editable*/ color:#202020;
  70. display:block;
  71. /*@editable*/ font-family:Arial;
  72. /*@editable*/ font-size:22px;
  73. /*@editable*/ font-weight:bold;
  74. /*@editable*/ line-height:100%;
  75. margin-top:0;
  76. margin-right:0;
  77. margin-bottom:10px;
  78. margin-left:0;
  79. /*@editable*/ text-align:left;
  80. }
  81. /* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: PREHEADER /\/\/\/\/\/\/\/\/\/\ */
  82. /**
  83. * @tab Header
  84. * @section preheader style
  85. * @tip Set the background color for your email's preheader area.
  86. * @theme page
  87. */
  88. #templatePreheader{
  89. /*@editable*/ background-color:#FAFAFA;
  90. }
  91. /**
  92. * @tab Header
  93. * @section preheader text
  94. * @tip Set the styling for your email's preheader text. Choose a size and color that is easy to read.
  95. */
  96. .preheaderContent div{
  97. /*@editable*/ color:#505050;
  98. /*@editable*/ font-family:Arial;
  99. /*@editable*/ font-size:10px;
  100. /*@editable*/ line-height:100%;
  101. /*@editable*/ text-align:left;
  102. }
  103. /**
  104. * @tab Header
  105. * @section preheader link
  106. * @tip Set the styling for your email's preheader links. Choose a color that helps them stand out from your text.
  107. */
  108. .preheaderContent div a:link, .preheaderContent div a:visited, /* Yahoo! Mail Override */ .preheaderContent div a .yshortcuts /* Yahoo! Mail Override */{
  109. /*@editable*/ color:#336699;
  110. /*@editable*/ font-weight:normal;
  111. /*@editable*/ text-decoration:underline;
  112. }
  113. /* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: HEADER /\/\/\/\/\/\/\/\/\/\ */
  114. /**
  115. * @tab Header
  116. * @section header style
  117. * @tip Set the background color and border for your email's header area.
  118. * @theme header
  119. */
  120. #templateHeader{
  121. /*@editable*/ background-color:#FFFFFF;
  122. /*@editable*/ border-bottom:0;
  123. }
  124. /**
  125. * @tab Header
  126. * @section header text
  127. * @tip Set the styling for your email's header text. Choose a size and color that is easy to read.
  128. */
  129. .headerContent{
  130. /*@editable*/ color:#202020;
  131. /*@editable*/ font-family:Arial;
  132. /*@editable*/ font-size:34px;
  133. /*@editable*/ font-weight:bold;
  134. /*@editable*/ line-height:100%;
  135. /*@editable*/ padding:0;
  136. /*@editable*/ text-align:center;
  137. /*@editable*/ vertical-align:middle;
  138. }
  139. /**
  140. * @tab Header
  141. * @section header link
  142. * @tip Set the styling for your email's header links. Choose a color that helps them stand out from your text.
  143. */
  144. .headerContent a:link, .headerContent a:visited, /* Yahoo! Mail Override */ .headerContent a .yshortcuts /* Yahoo! Mail Override */{
  145. /*@editable*/ color:#336699;
  146. /*@editable*/ font-weight:normal;
  147. /*@editable*/ text-decoration:underline;
  148. }
  149. #headerImage{
  150. height:auto;
  151. max-width:600px !important;
  152. }
  153. /* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: MAIN BODY /\/\/\/\/\/\/\/\/\/\ */
  154. /**
  155. * @tab Body
  156. * @section body style
  157. * @tip Set the background color for your email's body area.
  158. */
  159. #templateContainer, .bodyContent{
  160. /*@editable*/ background-color:#FFFFFF;
  161. }
  162. /**
  163. * @tab Body
  164. * @section body text
  165. * @tip Set the styling for your email's main content text. Choose a size and color that is easy to read.
  166. * @theme main
  167. */
  168. .bodyContent div{
  169. /*@editable*/ color:#505050;
  170. /*@editable*/ font-family:Arial;
  171. /*@editable*/ font-size:14px;
  172. /*@editable*/ line-height:150%;
  173. /*@editable*/ text-align:left;
  174. }
  175. /**
  176. * @tab Body
  177. * @section body link
  178. * @tip Set the styling for your email's main content links. Choose a color that helps them stand out from your text.
  179. */
  180. .bodyContent div a:link, .bodyContent div a:visited, /* Yahoo! Mail Override */ .bodyContent div a .yshortcuts /* Yahoo! Mail Override */{
  181. /*@editable*/ color:#336699;
  182. /*@editable*/ font-weight:normal;
  183. /*@editable*/ text-decoration:underline;
  184. }
  185. .bodyContent img{
  186. display:inline;
  187. height:auto;
  188. }
  189. /* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: FOOTER /\/\/\/\/\/\/\/\/\/\ */
  190. /**
  191. * @tab Footer
  192. * @section footer style
  193. * @tip Set the background color and top border for your email's footer area.
  194. * @theme footer
  195. */
  196. #templateFooter{
  197. /*@editable*/ background-color:#FFFFFF;
  198. /*@editable*/ border-top:0;
  199. }
  200. /**
  201. * @tab Footer
  202. * @section footer text
  203. * @tip Set the styling for your email's footer text. Choose a size and color that is easy to read.
  204. * @theme footer
  205. */
  206. .footerContent div{
  207. /*@editable*/ color:#707070;
  208. /*@editable*/ font-family:Arial;
  209. /*@editable*/ font-size:12px;
  210. /*@editable*/ line-height:125%;
  211. /*@editable*/ text-align:left;
  212. }
  213. /**
  214. * @tab Footer
  215. * @section footer link
  216. * @tip Set the styling for your email's footer links. Choose a color that helps them stand out from your text.
  217. */
  218. .footerContent div a:link, .footerContent div a:visited, /* Yahoo! Mail Override */ .footerContent div a .yshortcuts /* Yahoo! Mail Override */{
  219. /*@editable*/ color:#336699;
  220. /*@editable*/ font-weight:normal;
  221. /*@editable*/ text-decoration:underline;
  222. }
  223. .footerContent img{
  224. display:inline;
  225. }
  226. /**
  227. * @tab Footer
  228. * @section social bar style
  229. * @tip Set the background color and border for your email's footer social bar.
  230. * @theme footer
  231. */
  232. #social{
  233. /*@editable*/ background-color:#FAFAFA;
  234. /*@editable*/ border:0;
  235. }
  236. /**
  237. * @tab Footer
  238. * @section social bar style
  239. * @tip Set the background color and border for your email's footer social bar.
  240. */
  241. #social div{
  242. /*@editable*/ text-align:center;
  243. }
  244. /**
  245. * @tab Footer
  246. * @section utility bar style
  247. * @tip Set the background color and border for your email's footer utility bar.
  248. * @theme footer
  249. */
  250. #utility{
  251. /*@editable*/ background-color:#FFFFFF;
  252. /*@editable*/ border:0;
  253. }
  254. /**
  255. * @tab Footer
  256. * @section utility bar style
  257. * @tip Set the background color and border for your email's footer utility bar.
  258. */
  259. #utility div{
  260. /*@editable*/ text-align:center;
  261. }
  262. #monkeyRewards img{
  263. max-width:190px;
  264. }
  265. </style>
  266. </head>
  267. <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
  268. <center>
  269. <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
  270. <tr>
  271. <td align="center" valign="top">
  272. <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateContainer">
  273. <tr>
  274. <td align="center" valign="top">
  275. <!-- // Begin Template Header \\ -->
  276. <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateHeader">
  277. <tr>
  278. <td class="headerContent">
  279. <!-- // Begin Module: Standard Header Image \\ -->
  280. <img src="https://www.sharelatex.com/brand/logo/banner-plain.png" style="max-width:600px;" id="headerImage campaign-icon" />
  281. <!-- // End Module: Standard Header Image \\ -->
  282. </td>
  283. </tr>
  284. </table>
  285. <!-- // End Template Header \\ -->
  286. </td>
  287. </tr>
  288. <tr>
  289. <td align="center" valign="top">
  290. <!-- // Begin Template Body \\ -->
  291. <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateBody">
  292. <tr>
  293. <td valign="top" class="bodyContent">
  294. <!-- // Begin Module: Standard Content \\ -->
  295. <table border="0" cellpadding="20" cellspacing="0" width="100%">
  296. <tr>
  297. <td valign="top">
  298. <div>
  299. <%= body %>
  300. </div>
  301. </td>
  302. </tr>
  303. </table>
  304. <!-- // End Module: Standard Content \\ -->
  305. </td>
  306. </tr>
  307. </table>
  308. <!-- // End Template Body \\ -->
  309. </td>
  310. </tr>
  311. <tr>
  312. <td align="center" valign="top">
  313. <!-- // Begin Template Footer \\ -->
  314. <table border="0" cellpadding="10" cellspacing="0" width="600" id="templateFooter">
  315. <tr>
  316. <td valign="top" class="footerContent">
  317. <!-- // Begin Module: Standard Footer \\ -->
  318. <table border="0" cellpadding="10" cellspacing="0" width="100%">
  319. <tr>
  320. <td colspan="2" valign="middle" id="social">
  321. <div">
  322. &nbsp;<a href="http://twitter.com/#!/sharelatex">follow on Twitter</a> | <a href="http://www.facebook.com/pages/ShareLaTeX/301671376556660">friend on Facebook</a>
  323. </div>
  324. </td>
  325. </tr>
  326. </table>
  327. <!-- // End Module: Standard Footer \\ -->
  328. </td>
  329. </tr>
  330. </table>
  331. <!-- // End Template Footer \\ -->
  332. </td>
  333. </tr>
  334. </table>
  335. <br />
  336. </td>
  337. </tr>
  338. </table>
  339. </center>
  340. </body>
  341. </html>
  342. '''