]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/notifier_helper.rb
Localisation updates from https://translatewiki.net.
[rails.git] / app / helpers / notifier_helper.rb
index 0510ae0a89280dc97d5bb3ef0c2eb2e21d54ea36..3e53e2543c006a57f9dee08113099abd892df457 100644 (file)
@@ -14,8 +14,12 @@ module NotifierHelper
 
   def message_body(&block)
     render(
 
   def message_body(&block)
     render(
-      partial: "message_body",
-      locals: { body: capture(&block) }
+      :partial => "message_body",
+      :locals => { :body => capture(&block) }
     )
   end
     )
   end
+
+  def style_message(html)
+    html.gsub /<p>/, '<p style="color: black; margin: 0.75em 0">'
+  end
 end
 end