+
+
-
-
-
+
+
-
-
-
-
-
-
- |
-
-
-
-
-
- <%= number_format_i18n(opened, 1) %>%
-
-
- |
-
-
-
-
-
-
-
- <%= __('open rate') %>
-
- |
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
- <%= number_format_i18n(clicked, 1) %>%
-
-
- |
-
-
-
-
-
-
-
- <%= __('click rate') %>
-
- |
-
- |
-
-
-
- |
-
-
-
- |
-
- <% if topLinkClicks > 0 %>
-
-
-
+
+
+ |
-
-
-
-
-
-
-
-
+
+
+
+ <%= number_format_i18n(opened, 1) %>%
+
+
+ |
+
+
+
+
-
+
+ <%= __('open rate') %>
|
-
-
-
-
-
-
- <% if topLink starts with 'http' %>
-
- <%= topLink %>
-
- <% else %>
- <%= topLink %>
- <% endif %>
- |
-
-
-
-
-
- <%= __('%s unique clicks')|replace({'%s': topLinkClicks}) %>
-
- |
-
- |
-
-
-
+ |
|
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ <%= number_format_i18n(clicked, 1) %>%
+
+
+ |
+
+
+
+
+
+
+
+ <%= __('click rate') %>
+
+ |
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+ <% if topLinkClicks > 0 %>
+
+
+
+
-
-
+
+
-
-
-
+
+
-
-
+ |
|
-
- |
-
-
-
-
- |
-
-
- |
-
-
|
@@ -340,90 +205,102 @@
|
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
- |
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
- |
-
-
-
- |
-
-
-
- |
-
- |
+
-
-
-
-
-
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <% if topLink starts with 'http' %>
+
+ <%= topLink %>
+
+ <% else %>
+ <%= topLink %>
+ <% endif %>
+ |
+
+
+
+
+
+ <%= __('%s unique clicks')|replace({'%s': topLinkClicks}) %>
+
+ |
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+ <% endif %>
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+<% endblock %>
diff --git a/views/emails/statsNotification.txt b/views/emails/statsNotification.txt
index ef8708fca4..b089898ef7 100644
--- a/views/emails/statsNotification.txt
+++ b/views/emails/statsNotification.txt
@@ -1,3 +1,6 @@
+<% extends 'emails/statsNotificationLayout.txt' %>
+
+<% block content %>
<%= __('Your stats are in!') %>
<%= subject %>
@@ -30,7 +33,4 @@
<%= __('View all stats') %>
<%= linkStats %>
-
-<%= __('How to improve my open rate?') %> https://www.mailpoet.com/how-to-improve-open-rates/
-<%= __('And my click rate?') %> https://www.mailpoet.com/how-to-improve-click-rates/
-<%= __('Disable these emails') %> <%= linkSettings %>
+<% endblock %>
diff --git a/views/emails/statsNotificationLayout.html b/views/emails/statsNotificationLayout.html
new file mode 100644
index 0000000000..c2df27e555
--- /dev/null
+++ b/views/emails/statsNotificationLayout.html
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+ <%= subject %>
+
+
+
+
+
+
+
+ <% if preheader %>
+
+ <% endif %>
+
+
+
+
+
+ <% block content %><% endblock %>
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
diff --git a/views/emails/statsNotificationLayout.txt b/views/emails/statsNotificationLayout.txt
new file mode 100644
index 0000000000..b898e2577f
--- /dev/null
+++ b/views/emails/statsNotificationLayout.txt
@@ -0,0 +1,5 @@
+<% block content %><% endblock %>
+
+<%= __('How to improve my open rate?') %> https://www.mailpoet.com/how-to-improve-open-rates/
+<%= __('And my click rate?') %> https://www.mailpoet.com/how-to-improve-click-rates/
+<%= __('Disable these emails') %> <%= linkSettings %>
| |