X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ac081305f24453b576d826f0b85a851e0e8506e2..c439f957ae30520a729c3b8250e14e406183c6cb:/app/helpers/notifier_helper.rb?ds=sidebyside diff --git a/app/helpers/notifier_helper.rb b/app/helpers/notifier_helper.rb index 62801ed82..3e53e2543 100644 --- a/app/helpers/notifier_helper.rb +++ b/app/helpers/notifier_helper.rb @@ -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 /

/, '

' + end end