helpers: add vertical_margin helper for mailers

This commit is contained in:
Pierre de La Morinerie 2019-07-22 15:20:47 +02:00
parent 2c612f6448
commit 45c62cefb2
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,4 @@
%table{ cellspacing: "0", cellpadding: (height / 2), border: "0" }
%tr
%td
%div