<% extends 'emails/statsNotificationLayout.txt' %>

<% block content %>
<%= __('Your monthly stats are in!') %>

<% for newsletter in newsletters %>
------------------------------------------
  <%= newsletter.subject %>
  <%= 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') %>
<% if newsletter.notTracked > 0 %>
  <% if newsletter.trackedSent > 0 %>
    <%= _n('%1$s of your recipients is not tracked, so open and click rates are based on the other %2$s.', '%1$s of your recipients are not tracked, so open and click rates are based on the other %2$s.', newsletter.notTracked)|replace({'%1$s': newsletter.notTracked, '%2$s': newsletter.trackedSent}) %>
  <% else %>
    <%= _n('Your %1$s recipient is not tracked, so open and click rates cannot be measured.', 'None of your %1$s recipients are tracked, so open and click rates cannot be measured.', newsletter.notTracked)|replace({'%1$s': newsletter.notTracked}) %>
  <% endif %>
<% endif %>
  <%= __('View all stats') %>
    <%= newsletter.linkStats|raw %>
<% endfor %>
------------------------------------------
<% endblock %>
