]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/notifier.html.erb
531575beb2087715b429f39401ae309402d31aa7
[rails.git] / app / views / layouts / notifier.html.erb
1 <html>
2   <head>
3     <meta charset="UTF-8"></meta>
4   </head>
5   <body style="padding: 0; margin: 0; font-size: 14px; font-family: 'Helvetica Neue', Arial, sans-serif; color: #222">
6     <table style="background-color: #eee; width: 100%">
7       <tr>
8         <td style="text-align: center; padding: 0px 7px">
9           <table style="width: 600px; color: #222; margin-left: auto; margin-right: auto">
10             <tr>
11               <td style="width: 30px; padding: 10px 10px 10px 0px">
12                 <a href="<%= @root_url %>" target="_blank">
13                   <%= image_tag attachments["logo.png"].url, alt: "OpenStreetMap", title: "OpenStreetMap", height: "30", width: "30", border: "0" %>
14                 </a>
15               </td>
16               <td style="width: 570px; padding: 0px; text-align: left">
17                 <%# NB we need "text-decoration: none" twice: GMail only honours it on the <a> but Outlook only on the <strong> %>
18                 <a href="<%= @root_url %>" target="_blank" style="text-decoration: none; color: #000">
19                   <strong style="text-decoration: none; font-size: 18px; font-weight: 600; margin: 0; text-align: left">OpenStreetMap</strong>
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: 0px 15px 5px 15px">
28                       <%= raw style_message(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; font-family: 'Helvetica Neue', Arial, sans-serif">
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>