]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/notifier_helper.rb
Merge remote-tracking branch 'openstreetmap/pull/1401'
[rails.git] / app / helpers / notifier_helper.rb
index 62801ed82394ce45ab7aa9f20784b0aa4f8c3eb9..3e53e2543c006a57f9dee08113099abd892df457 100644 (file)
@@ -11,4 +11,15 @@ module NotifierHelper
       :style => "text-decoration: none; color: #222; font-weight: bold"
     )
   end
+
+  def message_body(&block)
+    render(
+      :partial => "message_body",
+      :locals => { :body => capture(&block) }
+    )
+  end
+
+  def style_message(html)
+    html.gsub /<p>/, '<p style="color: black; margin: 0.75em 0">'
+  end
 end