Patch #13482 ยป suppress-empty-header-footer.patch
| app/views/layouts/mailer.html.erb | ||
|---|---|---|
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<% if not Setting.emails_header.empty? -%>
|
||
|
<span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header).html_safe %></span>
|
||
|
<% end -%>
|
||
|
<%= yield %>
|
||
|
<% if not Setting.emails_footer.empty? -%>
|
||
|
<hr />
|
||
|
<span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer).html_safe %></span>
|
||
|
<% end -%>
|
||
|
</body>
|
||
|
</html>
|
||
| app/views/layouts/mailer.text.erb | ||
|---|---|---|
|
<% if not Setting.emails_header.empty? -%>
|
||
|
<%= Setting.emails_header %>
|
||
|
<% end -%>
|
||
|
<%= yield %>
|
||
|
<% if not Setting.emails_footer.empty? -%>
|
||
|
--
|
||
|
<%= Setting.emails_footer %>
|
||
|
<% end -%>
|
||