]> git.openstreetmap.org Git - rails.git/commitdiff
Renamed `apply_inline_css` to `style_message` as suggested
authorHerve Saint-Amand <git@saintamh.org>
Sat, 28 Jan 2017 23:08:25 +0000 (23:08 +0000)
committerHerve Saint-Amand <git@saintamh.org>
Sat, 28 Jan 2017 23:08:25 +0000 (23:08 +0000)
app/helpers/notifier_helper.rb
app/views/layouts/notifier.html.erb

index be01e5391a2a41e8672309474f0c32dbd017f994..3e53e2543c006a57f9dee08113099abd892df457 100644 (file)
@@ -19,7 +19,7 @@ module NotifierHelper
     )
   end
 
-  def apply_inline_css(html)
+  def style_message(html)
     html.gsub /<p>/, '<p style="color: black; margin: 0.75em 0">'
   end
 end
index 8287d5ec058331686e70c6ea20fe0cb727b01a7d..dd041cca5268c01f9ec4ff3d904980c6c6ffeb32 100644 (file)
@@ -24,7 +24,7 @@
                 <table style="background-color: #fff; color: #222; border: solid 1px #ccc; border-collapse: separate">
                   <tr>
                     <td style="text-align: left; padding: 0px 15px 5px 15px">
-                      <%= raw apply_inline_css(yield) %>
+                      <%= raw style_message(yield) %>
                     </td>
                   </tr>
                 </table>