Update txt version of the stats notification automated email

This commit makes the following changes to the txt version of the stats
notification automated email:

- Display clicks before opens
- Add machine-opens, unsubscribed and bounced stats

[MAILPOET-4102]
This commit is contained in:
Rodrigo Primo
2022-02-02 18:26:10 -03:00
committed by Veljko V
parent 8c379cac1f
commit 41ab151780

View File

@@ -7,8 +7,11 @@
<% for newsletter in newsletters %>
------------------------------------------
<%= newsletter.subject %>
<%= __('open rate') %>: <%= number_format_i18n(newsletter.opened, 1) %>% (<%= opened_stats_text(newsletter.opened) %>)
<%= __('click rate') %>: <%= number_format_i18n(newsletter.clicked, 1) %>% (<%= clicked_stats_text(newsletter.clicked) %>)
<%= stats_number_format_i18n(newsletter.clicked) %>% <%= __('clicked') %> (<%= clicked_stats_text(newsletter.clicked) %>)
<%= stats_number_format_i18n(newsletter.opened) %>% <%= __('opened') %>
<%= stats_number_format_i18n(newsletter.machineOpened) %>% <%= __('machine-opened') %>
<%= stats_number_format_i18n(newsletter.unsubscribed) %>% <%= __('unsubscribed') %>
<%= stats_number_format_i18n(newsletter.bounced) %>% <%= __('bounced') %>
<%= __('View all stats') %>
<%= newsletter.linkStats %>
<% endfor %>