diff --git a/app/views/layouts/mailer.text.html.erb b/app/views/layouts/mailer.text.html.erb index e4860fd5..53ccca0d 100644 --- a/app/views/layouts/mailer.text.html.erb +++ b/app/views/layouts/mailer.text.html.erb @@ -26,7 +26,9 @@ hr { <%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header) %> +<%= call_hook(:view_layouts_mailer_html_before_content, self.assigns) %> <%= yield %> +<%= call_hook(:view_layouts_mailer_html_after_content, self.assigns) %>
<%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer) %> diff --git a/app/views/layouts/mailer.text.plain.erb b/app/views/layouts/mailer.text.plain.erb index 4b8c0b4f..d4e9c04d 100644 --- a/app/views/layouts/mailer.text.plain.erb +++ b/app/views/layouts/mailer.text.plain.erb @@ -1,4 +1,6 @@ <%= Setting.emails_header %> +<%= call_hook(:view_layouts_mailer_plain_before_content, self.assigns) %> <%= yield %> +<%= call_hook(:view_layouts_mailer_plain_after_content, self.assigns) %> -- <%= Setting.emails_footer %>