mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.5 KiB
35 lines
1.5 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<style></style>
|
|
</head>
|
|
<body dir="<%= TextUtils.rtl?(yield) ? 'rtl' : 'auto' %>">
|
|
<% mailer_account = @current_account || @submitter&.account || @submission&.account
|
|
if mailer_account
|
|
mailer_brand_name, _mbn_locked = mailer_account.config_value(AccountConfig::BRAND_NAME_KEY)
|
|
mailer_brand_font, _mbf_locked = mailer_account.config_value(AccountConfig::BRAND_NAME_FONT_KEY)
|
|
end
|
|
mailer_brand_name = mailer_brand_name.presence
|
|
mailer_brand_font = mailer_brand_font.presence %>
|
|
<% mailer_font_css = AccountConfig.brand_font_css(mailer_brand_font) %>
|
|
<% if mailer_brand_name %>
|
|
<div style="margin-bottom: 16px; font-size: 20px; font-weight: bold;<%= " font-family: #{mailer_font_css};" if mailer_font_css %>">
|
|
<%= mailer_brand_name %>
|
|
</div>
|
|
<% end %>
|
|
<%= yield %>
|
|
<% footer_account = mailer_account %>
|
|
<% if footer_account %>
|
|
<% footer_value, _locked = footer_account.config_value(AccountConfig::EMAIL_FOOTER_MESSAGE_KEY) %>
|
|
<% if footer_value.present? %>
|
|
<div style="margin-top: 24px; padding-top: 12px; border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 12px; white-space: pre-line;">
|
|
<%= footer_value %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
<%= render partial: 'shared/mailer_attribution' %>
|
|
</body>
|
|
</html>
|