refactor mailer custom content

This commit is contained in:
Pete Matsyburka
2024-03-10 00:41:18 +02:00
parent 633e5ac5e4
commit af9d015cf2
4 changed files with 4 additions and 3 deletions
@@ -1,5 +1,5 @@
<% if @email_config %>
<%= auto_link(simple_format(h(ReplaceEmailVariables.call(@email_config.value['body'], submitter: @submitter, sig: @sig)))) %>
<%= render 'custom_content', content: ReplaceEmailVariables.call(@email_config.value['body'], submitter: @submitter, sig: @sig) %>
<% else %>
<p>Hi there,</p>
<p>Please check the copy of your "<%= @submitter.submission.template.name %>" submission in the email attachments.</p>