add view helper for mail heading

This commit is contained in:
Alexis Reigel 2017-05-10 17:38:37 +02:00
parent b0e0bfc8e7
commit 25fcaa9fa3
1 changed files with 13 additions and 0 deletions

View File

@ -66,4 +66,17 @@ module EmailsHelper
)
end
end
def email_default_heading(text)
content_tag :h1, text, style: [
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif",
'color:#333333',
'font-size:18px',
'font-weight:400',
'line-height:1.4',
'padding:0',
'margin:0',
'text-align:center'
].join(';')
end
end