NotificationEmailLayout.coffee 11 KB

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