add view helper for mail heading
This commit is contained in:
parent
b0e0bfc8e7
commit
25fcaa9fa3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue