PageRenderTime 43ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/newsletters/grn.html.erb

https://gitlab.com/franzejr/grn-static
Ruby HTML | 228 lines | 216 code | 10 blank | 2 comment | 10 complexity | 3952b432193f3893a41543969302f6a1 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta property="og:title" content="*|MC:SUBJECT|*">
  6. <title>*|MC:SUBJECT|*</title>
  7. <style type="text/css">
  8. #outlook a{
  9. padding:0;
  10. }
  11. body { width:100% !important; -webkit-text-size-adjust:none; margin:0; padding:0; }
  12. img{ border:none; font-size:14px; font-weight:bold; height:auto; line-height:100%; outline:none; text-decoration:none; text-transform:capitalize; }
  13. #backgroundTable { height:100% !important; margin:0; padding:0; width:100% !important; }
  14. body,.backgroundTable { background-color:#11332f; }
  15. #templateContainer { background-color:#113025; }
  16. #wrapper { width:600px; border:1px solid #000000; }
  17. h1 { color:#202020; display:block; font-family:Courier New, monospace; font-size:30px; font-weight:bold; line-height:100%; margin-bottom:0px; margin-top:0; text-align: right; }
  18. h2 { color:#202020; display:block; font-family:Courier New, monospace; font-weight:bold; line-height:100%; margin-top:6px; margin-bottom:3px; text-align:left; border-top:1px solid #000; border-bottom:1px dashed #ccc; padding:5px 0 2px 0; font-size:18px; text-transform:uppercase; }
  19. h3 { color:#202020; display:block; font-family:Courier New, monospace; font-size:26px; font-weight:bold; line-height:100%; margin-bottom:0; text-align:left; }
  20. ul { padding-left:15px; margin:5px 0; }
  21. #templatePreheader { background-color:#217844; padding:10px; text-align:left; padding-bottom:10px; }
  22. #templatePreheader div { color:#ffffff; font-family:Courier New, monospace; font-size:10px; line-height:100%; text-align:center; }
  23. #templatePreheader div a:link,#templatePreheader div a:visited { color:#eddf26; font-weight:bold; text-decoration:none; }
  24. #templatePreheader div.title { font-size:14px; font-weight:bold; }
  25. #templateHeader { background-color:#ffffff; color:#113331; font-size:14px; font-family:Courier New, monospace; line-height:100%; padding:5px 20px 15px; position:relative; }
  26. #templateHeader div { text-align:right; }
  27. #templateHeader #headerImage { position:absolute; left:20px; top:-10px; float:left; }
  28. #templateBody { background-color:#ffffff; margin-top: -15px; padding: 10px 20px; clear:both; }
  29. #templateBody div, #templateBody td { color: #505050; font-family: Arial, sans serif; font-size: 14px; line-height: 150%; }
  30. #templateBody a:link,#templateBody a:visited { color:#297b4e; font-weight:bold; text-decoration:underline; }
  31. #templateBody td.date { text-align: right; font-size: 12px; font-weight: bold; color: #aaa; }
  32. #templateFooter { color:#ffffff; font-family:Arial, sans serif; font-size:12px; line-height:125%; text-align:left; }
  33. #templateFooter ul { list-style:none; margin:0; padding:0; }
  34. #templateFooter a:link,#templateFooter a:visited { color:#f2eb17; text-decoration:none; }
  35. #templateFooter img { display:inline; }
  36. #rant { text-align: left; }
  37. #info { float:left; width:50%; }
  38. #social { padding:10px; }
  39. #utility { padding:10px; }
  40. #address { float:left; width:50%; }
  41. #address .add { padding:10px; }
  42. #address a:link,#address a:visited { color:#f2eb17; text-decoration:none; }
  43. #copyright { text-align:center; padding:5px; font-size:10px; color:#297b4e; font-family:Courier new, monospace; background-color:#113025; clear:both; }
  44. #copyright a { color:#217844; text-decoration:none; }
  45. #copyright a:hover { color:#ffffff; }
  46. #poweredby { padding:10px; }
  47. #poweredby a { width:300px; font-size:12px; font-family:Courier new, monospace; color:#217844; text-decoration:none; }
  48. #poweredby a:hover { color:#ffffff; }
  49. .baseline { padding-bottom: 8px; text-align: left; font-style: italic; color: #aaa; }
  50. .duration { font-size: 12px; font-weight: bold; color: #999; font-family: Courier new, monospace; }
  51. table.meat { width: 100%; border: 0; }
  52. table.meat tr:hover td { background-color: #eee; }
  53. .icon { position: relative; top: 2px; margin-left: 5px; }
  54. table.meat tr td.comment { padding-bottom: 8px; }
  55. @media only screen and (max-width: 600px) {
  56. body { width:auto !important; }
  57. body,table,td,p,a,li,blockquote { -webkit-text-size-adjust:none !important; }
  58. #backgroundTable,#wrapper { max-width:600px !important; width:100% !important; }
  59. #templatePreheader { display:none; }
  60. #templateBody { padding:10px !important; }
  61. }
  62. </style>
  63. </head>
  64. <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
  65. <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
  66. <tr>
  67. <td align="center" valign="top">
  68. <div id="wrapper">
  69. <div id="templatePreheader">
  70. <div><div class="title">Green Ruby News</div>
  71. <div class="view">
  72. <!-- *|IFNOT:ARCHIVE_PAGE|* -->
  73. Is this email not displaying correctly?
  74. <a href="http://greenruby.org/grn-<%= c.edition %>.html" target="_blank">View it in your browser</a>.
  75. <!-- *|END:IF|* -->
  76. </div>
  77. </div>
  78. </div>
  79. <div id="templateContainer">
  80. <div id="templateHeader">
  81. <img src="http://greenruby.org/img/green-ruby-68.png" id="headerImage">
  82. <div>
  83. <h1>Green Ruby News #<%= c.edition %></h1>
  84. <div><%= c.pubdate %></div>
  85. </div>
  86. </div>
  87. <div id="templateBody">
  88. *|IFNOT:CONTENT=Only Rant|*
  89. <% if @c.edito && @c.edito != '' %>
  90. <div>
  91. <div class="baseline">
  92. <h3>Edito</h3>
  93. <%= @c.edito %>
  94. <br>
  95. <br>
  96. <em>&nbsp; mose - the green ruby editor</em><br>
  97. <em>&nbsp; xenor - the informer</em><br>
  98. &nbsp; <a href="http://greenruby.org" target="_self">http://greenruby.org</a>
  99. <br>
  100. </div>
  101. <% end %>
  102. <% c.topics.each do |t| %>
  103. <h2><%= t.title %></h2>
  104. <div class="baseline"><%= t.baseline %></div>
  105. <table cellpadding="0" cellspacing="0" border="0" class="meat">
  106. <% t.links.each do |l| %>
  107. <tr><td>
  108. <a href="<%= l.url %>"><%= l.title %></a>
  109. <% if l.duration %><span class="duration">(<%= l.duration %>)</span><% end %>
  110. </td>
  111. <td class="date">
  112. <%= l.pubdate %>
  113. <% if l.tags %>
  114. <% l.tags.each do |tag| %>
  115. <img class="icon" src="http://greenruby.org/ico/<%= tag %>.png" height="18" width="18" align="right" alt="<%= tag %>" />
  116. <% end %>
  117. <% end %>
  118. </td></tr>
  119. <tr><td colspan="2" class="comment">
  120. <%= l.comment %>
  121. </td></tr>
  122. <% end %>
  123. </table>
  124. <% end %>
  125. <div class="baseline" style="border-top: 1px solid #ccc">
  126. <% if @c.contributors %>
  127. <i>Links curated by mose (editor), <%= @c.contributors %> (informers).</i>
  128. <% elsif @c.editors %>
  129. <i>Links curated by mose (publisher), <%= @c.editors %> (editors)
  130. <% if @c.participants %>, <%= @c.participants %> (contributors)<% end %>
  131. .</i>
  132. <% else %>
  133. <i>Links curated by mose (editor), xenor (informer).</i>
  134. <% end %>
  135. </div>
  136. *|END:IF|*
  137. <% if @c.rant != '' %>
  138. *|IFNOT:CONTENT=Only Links|*
  139. <div id="rant">
  140. <h2>Rant</h2>
  141. <div class="baseline"><i>The random rant of the week by <%= @c.rant.author rescue 'mose' %>.</i></div>
  142. <%= @c.rant_html %>
  143. </div>
  144. <hr>
  145. <div class="baseline"><i>If you don't need the rant section in your mailbox, you can <a href="*|UPDATE_PROFILE|*">adjust your preferences</a>.</i></div>
  146. *|END:IF|*
  147. <% end %>
  148. <hr>
  149. <div class="baseline">
  150. EOF<br><br>
  151. <em>Feel free to send us feedback or information at <a href="mailto:news@greenruby.org" target="_self">news@greenruby.org</a></em>
  152. </div>
  153. </div>
  154. </div>
  155. <div id="templateFooter">
  156. <div id="info">
  157. <div id="social">
  158. <div mc:edit="std_social">
  159. <ul>
  160. <li><a href="http://twitter.com/greenrubist">follow on Twitter</a></li>
  161. <li><a href="*|FORWARD|*">forward to a friend</a></li>
  162. </ul>
  163. </div>
  164. </div>
  165. <div id="utility">
  166. <div mc:edit="std_utility">
  167. <ul>
  168. <li><a href="*|LIST:SUBSCRIBE|*">Subscribe</a></li>
  169. </ul>
  170. <br>
  171. *|IFNOT:ARCHIVE_PAGE|*
  172. <ul>
  173. <li><a href="*|UNSUB|*">Unsubscribe</a></li>
  174. <li><a href="*|UPDATE_PROFILE|*">Update preferences</a></li>
  175. </ul>
  176. *|END:IF|*
  177. </div>
  178. </div>
  179. </div>
  180. <div id="address">
  181. <div class="add" mc:edit="std_footer">
  182. *|IFNOT:ARCHIVE_PAGE|*
  183. <div>
  184. *|LIST:DESCRIPTION|*
  185. </div>
  186. <div>
  187. <strong>Our mailing address is:</strong>
  188. <div>*|HTML:LIST_ADDRESS_HTML|*</div>
  189. </div>
  190. *|ELSE:|*
  191. <div>
  192. <strong>Our mailing address is:</strong>
  193. <div>*|USER:ADDRESS_HTML|*</div>
  194. </div>
  195. *|END:IF|*
  196. </div>
  197. </div>
  198. </div>
  199. <div id="copyright">
  200. Copyright &copy; *|CURRENT_YEAR|* Mose<br>
  201. <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
  202. <img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png">
  203. </a>
  204. <br>
  205. This publication is licensed under a
  206. <br>
  207. <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
  208. Creative Commons Attribution-ShareAlike 3.0 License
  209. </a>.
  210. </div>
  211. </div>
  212. </div>
  213. <div id="poweredby">
  214. *|IF:REWARDS|* *|HTML:REWARDS|* *|END:IF|*
  215. </div>
  216. </td></tr></table>
  217. </body>
  218. </html>