]> git.openstreetmap.org Git - rails.git/blob - app/views/notifier/_message_body.html.erb
Set image dimensions in order to avoid a reflow after the page is drawn by the browser
[rails.git] / app / views / notifier / _message_body.html.erb
1 <table style="font-size: 15px; margin: 15px 0px; background-color: #eee; width: 100%">
2   <tr>
3     <td style="width: 50px; min-width: 50px; vertical-align: top; padding: 15px">
4       <%= link_to(
5             image_tag(
6               attachments["avatar.png"].url,
7               :alt => @author,
8               :title => @author,
9               :width => 50,
10               :height => 50,
11               :border => 0
12             ),
13             user_url(@author),
14             :target => "_blank"
15           ) %>
16     </td>
17     <td style="text-align: left; vertical-align: top; padding-right: 10px; width: 100%">
18       <%= body %>
19     </td>
20   </tr>
21 </table>