helpers: add vertical_margin helper for mailers
This commit is contained in:
parent
2c612f6448
commit
45c62cefb2
2 changed files with 8 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
||||||
module MailerHelper
|
module MailerHelper
|
||||||
|
def vertical_margin(height)
|
||||||
|
render 'shared/mailer_vertical_margin', height: height
|
||||||
|
end
|
||||||
|
|
||||||
def round_button(text, url, variant)
|
def round_button(text, url, variant)
|
||||||
render 'shared/mailer_round_button', text: text, url: url, theme: theme(variant)
|
render 'shared/mailer_round_button', text: text, url: url, theme: theme(variant)
|
||||||
end
|
end
|
||||||
|
|
4
app/views/shared/_mailer_vertical_margin.html.haml
Normal file
4
app/views/shared/_mailer_vertical_margin.html.haml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
%table{ cellspacing: "0", cellpadding: (height / 2), border: "0" }
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%div
|
Loading…
Reference in a new issue