[#219] Add plugin hooks to the mailer layout
This commit is contained in:
parent
0db26f8337
commit
430fc228b5
|
@ -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>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue