-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
274b74f
commit a769575
Showing
5 changed files
with
63 additions
and
34 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
lib/plausible_web/templates/email/approaching_accept_traffic_until.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
<p> | ||
You used to have an active account with <%= Plausible.product_name() %>, a simple, lightweight, open source and privacy-first Google Analytics alternative. | ||
</p> | ||
|
||
<p> | ||
We've noticed that you're still sending us stats so we're writing to inform you that we'll stop accepting stats from your sites <%= @time %>. | ||
We're an independent, bootstrapped service and we don't sell your data, so this will reduce our server costs and help keep us sustainable. | ||
</p> | ||
|
||
<p> | ||
If you'd like to continue counting your site stats in a privacy-friendly way, please | ||
<a href={plausible_url()}>login to your Plausible account</a> | ||
and start a subscription. | ||
</p> | ||
|
||
<p :if={Plausible.ee?()}> | ||
Do you have any questions or need help with anything? Just reply to this email and we'll gladly help. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
<%= if @success do %> | ||
Your CSV import has completed successfully. The Plausible dashboard for <%= @site_import.site.domain %> now contains historical imported data from <%= date_format( | ||
@site_import.start_date | ||
) %> to <%= date_format(@site_import.end_date) %> | ||
<br /><br /> | ||
<a href={@link}>Click here</a> | ||
to view your dashboard. | ||
<p> | ||
Your CSV import has completed successfully. The Plausible dashboard for <%= @site_import.site.domain %> now contains historical imported data from <%= date_format( | ||
@site_import.start_date | ||
) %> to <%= date_format(@site_import.end_date) %> | ||
</p> | ||
<p> | ||
<a href={@link}>Click here</a> to view your dashboard. | ||
</p> | ||
<% else %> | ||
Unfortunately, your CSV import for <%= @site_import.site.domain %> did not complete successfully. Sorry about that! | ||
<br /><br /> Please try to do the import once again. | ||
<%= if ee?() do %> | ||
<br /> <br /> | ||
<p> | ||
Unfortunately, your CSV import for <%= @site_import.site.domain %> did not complete successfully. Sorry about that! | ||
</p> | ||
<p>Please try to do the import once again.</p> | ||
|
||
<p :if={Plausible.ee?()}> | ||
Please reply to this email to let us know if you're still experiencing issues with the import. | ||
<% end %> | ||
</p> | ||
<% end %> |
44 changes: 29 additions & 15 deletions
44
lib/plausible_web/templates/email/enterprise_over_limit_internal.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
Automated notice about an enterprise account that has gone over their limits. <br /><br /> | ||
Customer email: <%= @user.email %><br /> | ||
Last billing cycle: <%= PlausibleWeb.TextHelpers.format_date_range( | ||
@pageview_usage.last_cycle.date_range | ||
) %><br /> | ||
Last cycle pageview usage: <%= PlausibleWeb.AuthView.delimit_integer( | ||
@pageview_usage.last_cycle.total | ||
) %> billable pageviews<br /> | ||
Penultimate billing cycle: <%= PlausibleWeb.TextHelpers.format_date_range( | ||
@pageview_usage.penultimate_cycle.date_range | ||
) %><br /> | ||
Penultimate cycle pageview usage: <%= PlausibleWeb.AuthView.delimit_integer( | ||
@pageview_usage.penultimate_cycle.total | ||
) %> billable pageviews<br /> | ||
Site usage: <%= @site_usage %> / <%= @site_allowance %> allowed sites<br /> | ||
<p>Automated notice about an enterprise account that has gone over their limits.</p> | ||
|
||
<p>Customer email: <%= @user.email %></p> | ||
|
||
<p> | ||
Last billing cycle: <%= PlausibleWeb.TextHelpers.format_date_range( | ||
@pageview_usage.last_cycle.date_range | ||
) %> | ||
</p> | ||
|
||
<p> | ||
Last cycle pageview usage: <%= PlausibleWeb.AuthView.delimit_integer( | ||
@pageview_usage.last_cycle.total | ||
) %> billable pageviews | ||
</p> | ||
|
||
<p> | ||
Penultimate billing cycle: <%= PlausibleWeb.TextHelpers.format_date_range( | ||
@pageview_usage.penultimate_cycle.date_range | ||
) %> | ||
</p> | ||
|
||
<p> | ||
Penultimate cycle pageview usage: <%= PlausibleWeb.AuthView.delimit_integer( | ||
@pageview_usage.penultimate_cycle.total | ||
) %> billable pageviews | ||
</p> | ||
|
||
<p>Site usage: <%= @site_usage %> / <%= @site_allowance %> allowed sites</p> |
8 changes: 5 additions & 3 deletions
8
lib/plausible_web/templates/email/existing_user_invitation.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<%= @invitation.inviter.email %> has invited you to the <%= @invitation.site.domain %> site on <%= Plausible.product_name() %>. | ||
<a href={Routes.site_url(PlausibleWeb.Endpoint, :index)}>Click here</a> to view and respond to the invitation. The invitation | ||
will expire 48 hours after this email is sent. | ||
<p> | ||
<%= @invitation.inviter.email %> has invited you to the <%= @invitation.site.domain %> site on <%= Plausible.product_name() %>. | ||
<a href={Routes.site_url(PlausibleWeb.Endpoint, :index)}>Click here</a> to view and respond to the invitation. The invitation | ||
will expire 48 hours after this email is sent. | ||
</p> |
16 changes: 11 additions & 5 deletions
16
lib/plausible_web/templates/email/export_failure.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
Your <%= Plausible.product_name() %> export for <%= @site.domain %> has encountered an error and was unsuccessful. | ||
Sorry for the trouble this may have caused. <br /><br /> Please attempt to export your data again. | ||
<%= if ee?() do %> | ||
Should the problem persist, do reply to this email so we can assist. Thanks! | ||
<% end %> | ||
<p> | ||
Your <%= Plausible.product_name() %> export for <%= @site.domain %> has encountered an error and was unsuccessful. | ||
Sorry for the trouble this may have caused. | ||
</p> | ||
|
||
<p> | ||
Please attempt to export your data again. | ||
<span :if={Plausible.ee?()}> | ||
Should the problem persist, do reply to this email so we can assist. Thanks! | ||
</span> | ||
</p> |