Show correct reason for mentioned mail and some minor changes in the text display

pull/9700/head
Henriette Darge 3 years ago
parent dfbd0f8ef0
commit 60c185b629
  1. 4
      app/views/work_package_mailer/mentioned.html.erb
  2. 2
      app/views/work_package_mailer/mentioned.text.erb

@ -15,13 +15,13 @@
<%= render layout: 'mailer/notification_row', <%= render layout: 'mailer/notification_row',
locals: { locals: {
work_package: @work_package, work_package: @work_package,
unique_reasons: [I18n.t(:'mail.work_packages.reason.mentioned')], unique_reasons: [:mentioned],
show_count: false show_count: false
} do %> } do %>
<table <%= placeholder_table_styles %>> <table <%= placeholder_table_styles %>>
<tr> <tr>
<td style="color: #878787; line-height: 24px; font-size: 14px; white-space: normal;"> <td style="color: #878787; line-height: 24px; font-size: 14px; white-space: normal;">
<%= @journal.notes.html_safe %> <%= simple_format @journal.notes %>
</td> </td>
</tr> </tr>
</table> </table>

@ -8,6 +8,6 @@
<%= "=" * (('# ' + @work_package.id.to_s + @work_package.subject).length + 4) %> <%= "=" * (('# ' + @work_package.id.to_s + @work_package.subject).length + 4) %>
<%= I18n.t(:label_comment_added) %>: <%= I18n.t(:label_comment_added) %>:
<%= @journal.notes %> <%= strip_tags @journal.notes %>
<%= "-" * 100 %> <%= "-" * 100 %>

Loading…
Cancel
Save