[#219] Add plugin hooks to the mailer layout
This commit is contained in:
parent
0db26f8337
commit
430fc228b5
@ -26,7 +26,9 @@ hr {
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header) %></span>
|
<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 %>
|
<%= yield %>
|
||||||
|
<%= call_hook(:view_layouts_mailer_html_after_content, self.assigns) %>
|
||||||
<hr />
|
<hr />
|
||||||
<span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer) %></span>
|
<span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer) %></span>
|
||||||
</body>
|
</body>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<%= Setting.emails_header %>
|
<%= Setting.emails_header %>
|
||||||
|
<%= call_hook(:view_layouts_mailer_plain_before_content, self.assigns) %>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
<%= call_hook(:view_layouts_mailer_plain_after_content, self.assigns) %>
|
||||||
--
|
--
|
||||||
<%= Setting.emails_footer %>
|
<%= Setting.emails_footer %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user