]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notifier/_message_body.html.erb
Whitespace fixes for notifier erb views
[rails.git] / app / views / notifier / _message_body.html.erb
index 29ecf9ea89f7fb4252f5a6cb0f4df54acefb656c..b3b0eb687d5b44277e6cd8d76d2e4134e2575562 100644 (file)
@@ -1,17 +1,20 @@
-<table style="font-size: 15px; font-style: italic; margin: 15px; background-color: #eee; width: 520px">
+<table style="font-size: 15px; margin: 15px 0px; background-color: #eee; width: 100%">
   <tr>
-    <td style="width: 50px; vertical-align: top; padding: 15px">
+    <td style="width: 50px; min-width: 50px; vertical-align: top; padding: 15px">
       <%= link_to(
-          image_tag(
-            attachments["avatar.png"].url,
-            alt: @author,
-            title: @author
-          ),
-          user_url(@author, :host => SERVER_URL),
-          :target => "_blank"
-      ) %>
+            image_tag(
+              attachments["avatar.png"].url,
+              alt: @author,
+              title: @author,
+              width: 50,
+              height: 50,
+              border: 0
+            ),
+            user_url(@author),
+            :target => "_blank"
+          ) %>
     </td>
-    <td style="text-align: left; vertical-align: top; padding-right: 10px">
+    <td style="text-align: left; vertical-align: top; padding-right: 10px; width: 100%">
       <%= body %>
     </td>
   </tr>