Skip to content

Commit 1aa1c0b

Browse files
committed
removes redundancies in email notification body
1 parent 9d3385f commit 1aa1c0b

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

app/views/better_together/conversation_mailer/new_message_notification.html.erb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
<p><%= t('.greeting', recipient_name: @recipient.name) %></p>
44

5-
<p><%= t('.message_intro', conversation: @conversation.title) %></p>
6-
7-
<blockquote style="border-left: 4px solid #ccc; padding-left: 10px; margin: 10px 0;">
8-
<p><strong><%= @sender.name %>:</strong></p>
9-
<p><%= @message.content %></p>
10-
<P><small class="text-muted"><%= l(@message.created_at, format: :short) %></small></P>
11-
</blockquote>
5+
<p><%= t('.message_intro', sender_name: @sender.name) %></p>
126

137
<p><%= t('.view_conversation') %></p>
148

config/locales/en.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,12 +629,13 @@ en:
629629
new_message_notification:
630630
from_address: '%{sender_name} via %{from_address}'
631631
greeting: Hello %{recipient_name},
632-
message_intro: 'You have a new message in the conversation "%{conversation}":'
632+
message_intro: 'You have an unread message from %{sender_name}:'
633633
signature: Signature
634634
signature_html: |-
635635
Best regards,<br />
636636
The %{platform} Team
637-
subject: 'New message in conversation "%{conversation}"'
637+
subject: 'Your conversation has an unread message'
638+
subject_with_title: '[%{conversation}] conversation has an unread message'
638639
view_conversation: 'You can view and reply to this message by clicking the
639640
link below:'
640641
conversations:

0 commit comments

Comments
 (0)