NotificationEmailLayout.coffee 9.9 KB

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