Skip to content

Commit

Permalink
continue
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Oct 16, 2024
1 parent 274b74f commit a769575
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 34 deletions.
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>
26 changes: 15 additions & 11 deletions lib/plausible_web/templates/email/csv_import.html.heex
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 %>
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>
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 lib/plausible_web/templates/email/export_failure.html.heex
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>

0 comments on commit a769575

Please sign in to comment.