OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Show correct reason for mentioned mail and some minor changes in the text display
Henriette Darge60c185b629bb
diff --git a/app/views/work_package_mailer/mentioned.html.erb b/app/views/work_package_mailer/mentioned.html.erbindex 147d9111cbd..97e0b4371bc 100644--- a/app/views/work_package_mailer/mentioned.html.erb+++ b/app/views/work_package_mailer/mentioned.html.erb@@ -15,15 +15,15 @@<%= render layout: 'mailer/notification_row',locals: {work_package: @work_package,- unique_reasons: [I18n.t(:'mail.work_packages.reason.mentioned')],+ unique_reasons: [:mentioned],show_count: false} do %><table <%= placeholder_table_styles %>>- <tr>- <td style="color: #878787; line-height: 24px; font-size: 14px; white-space: normal;">- <%= @journal.notes.html_safe %>- </td>- </tr>+ <tr>+ <td style="color: #878787; line-height: 24px; font-size: 14px; white-space: normal;">+ <%= simple_format @journal.notes %>+ </td>+ </tr></table><% end %>diff --git a/app/views/work_package_mailer/mentioned.text.erb b/app/views/work_package_mailer/mentioned.text.erbindex 795b94f9339..dd1e9a33618 100644--- a/app/views/work_package_mailer/mentioned.text.erb+++ b/app/views/work_package_mailer/mentioned.text.erb@@ -8,6 +8,6 @@<%= "=" * (('# ' + @work_package.id.to_s + @work_package.subject).length + 4) %><%= I18n.t(:label_comment_added) %>:-<%= @journal.notes %>+<%= strip_tags @journal.notes %><%= "-" * 100 %>