Project

General

Profile

Patch #13482 ยป suppress-empty-header-footer.patch

Anonymous, 2013-03-15 01:30

View differences:

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 -%>
    (1-1/1)