[#219] Add plugin hooks to the mailer layout

This commit is contained in:
Eric Davis 2011-02-24 08:53:25 -08:00
parent 0db26f8337
commit 430fc228b5
2 changed files with 4 additions and 0 deletions

View File

@ -26,7 +26,9 @@ hr {
</head>
<body>
<span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header) %></span>
<%= call_hook(:view_layouts_mailer_html_before_content, self.assigns) %>
<%= yield %>
<%= call_hook(:view_layouts_mailer_html_after_content, self.assigns) %>
<hr />
<span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer) %></span>
</body>

View File

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