From 430fc228b5421a27bf7df60f6df4949f9e5d0acb Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Thu, 24 Feb 2011 08:53:25 -0800 Subject: [PATCH] [#219] Add plugin hooks to the mailer layout --- app/views/layouts/mailer.text.html.erb | 2 ++ app/views/layouts/mailer.text.plain.erb | 2 ++ 2 files changed, 4 insertions(+) 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 %>