Simplified the partial layout
[rails.git] / app / views / layouts / notifier.html.erb
1 <html>
2   <head>
3     <title></title>
4     <meta charset="UTF-8"></meta>
5   </head>
6   <body style="padding: 0; margin: 0; font-size: 14px; font-family: 'Helvetica Neue', Arial, sans-serif; color: #222">
7     <table style="background-color: #eee; width: 100%">
8       <tr>
9         <td style="text-align: center">
10           <table style="width: 600px; color: #222; margin-left: auto; margin-right: auto">
11             <tr>
12               <td style="width: 30px; padding: 10px">
13                 <a href="<%= @root_url %>" target="_blank">
14                   <%= image_tag attachments["logo.png"].url, alt: "OpenStreetMap logo", title: "OpenStreetMap", height: "30", width: "30", border: "0" %>
15                 </a>
16               </td>
17               <td style="padding: 10px 0px">
18                 <a href="<%= @root_url %>" target="_blank" style="text-decoration: none; color: #000">
19                   <h1 style="font-size: 18px; font-weight: 600; margin: 0; text-align: left">OpenStreetMap</h1>
20                 </a>
21               </td>
22             </tr>
23             <tr>
24               <td colspan="2">
25                 <table style="background-color: #fff; color: #222; border: solid 1px #ccc; border-collapse: separate">
26                   <tr>
27                     <td style="text-align: left; padding: 15px 15px 5px 15px">
28                       <%= yield %>
29                     </td>
30                   </tr>
31                 </table>
32               </td>
33             </tr>
34           </table>
35         </td>
36       </tr>
37       <tr>
38         <td style="text-align: center; font-size: 11px">
39           <%= yield :footer %>
40           <p style="margin-bottom: 10px">
41             <a href="<%= @root_url %>" target="_blank" style="color: #222">OpenStreetMap</a>
42           </p>
43         </td>
44       </tr>
45     </table>
46   </body>
47 </html>