mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
f12fc7551f
The view-helper migration introduced by the parent PR now covers the remaining mailer surfaces: UserMailer (`message_posted`, `news_added`, `news_comment_added`), ProjectMailer (`project_created`), ProjectArtifactsMailer (`creation_wizard_submitted`), MemberMailer (`added_project`, `updated_project`, `updated_global`), AnnouncementMailer (`announce`), DocumentsMailer (`document_added`), and the shared mailer layout (`localized_emails_header`, `localized_emails_footer`). Sites drop the `static_html: true` / `only_path: false` / `plain_text: true` boilerplate; `render_mode:` pinning lives in the helper. The layout previously called `OpenProject::TextFormatting::Renderer.format_text` directly, bypassing the helper layer. The empty visibility cache (no current_user-scoped preload at layout time) is handled by the existing fallback in `LinkHandlers::WorkPackages#text_only?` — covered by a new sanity spec in `user_mailer_spec.rb` that exercises the header path with a WP reference and asserts plain-text formatted_id rendering. Per-bucket regression coverage added: absolute-URL and formatted_id assertions across both classic and semantic identifier modes, mirroring the WorkPackageMailer spec pattern.
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
<%#-- copyright
|
|
OpenProject is an open source project management software.
|
|
Copyright (C) the OpenProject GmbH
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License version 3.
|
|
|
|
OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
|
|
Copyright (C) 2006-2013 Jean-Philippe Lang
|
|
Copyright (C) 2010-2013 the ChiliProject Team
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
See COPYRIGHT and LICENSE files for more details.
|
|
|
|
++#%>
|
|
|
|
<h1>
|
|
<%= @message.forum.project.name %> - <%= @message.forum.name %>: <%= link_to(@message.subject, message_url(@message)) %>
|
|
</h1>
|
|
<em><%= @message.author %></em>
|
|
|
|
<%= format_mail_html @message.content, object: @message %>
|