Skip to content

Commit

Permalink
update more templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Oct 17, 2024
1 parent a769575 commit fbc1a81
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
for the most valuable traffic insights at a glance.
</p>

<p if={Plausible.ee?()}>
<p :if={Plausible.ee?()}>
Do reply back to this email if you have any questions or need some guidance.
</p>
2 changes: 2 additions & 0 deletions lib/plausible_web/templates/email/csv_import.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
@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 %>
<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?()}>
Expand Down
51 changes: 32 additions & 19 deletions lib/plausible_web/templates/email/dashboard_locked.html.heex
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
Last week we sent a reminder that your site traffic has exceeded the limits of your <%= Plausible.product_name() %> subscription tier for two consecutive months. Since we haven't received a response, we've had to temporarily lock access to your stats.
<br /><br />
Your subscription is still active, we're still counting your stats and haven't deleted any of your data but as you have outgrown your subscription tier, we kindly ask you to upgrade to match your new traffic levels. Upon upgrading to a suitable tier, your dashboard access will be immediately restored.
<br /><br />
During the last billing cycle (<%= PlausibleWeb.TextHelpers.format_date_range(
@usage.last_cycle.date_range
) %>), your account recorded <%= PlausibleWeb.AuthView.delimit_integer(@usage.last_cycle.total) %> billable pageviews. In the billing cycle before that (<%= PlausibleWeb.TextHelpers.format_date_range(
@usage.penultimate_cycle.date_range
) %>), the usage was <%= PlausibleWeb.AuthView.delimit_integer(@usage.penultimate_cycle.total) %> billable pageviews. Note that billable pageviews include both standard pageviews and custom events. In your
<a href={PlausibleWeb.Router.Helpers.settings_url(PlausibleWeb.Endpoint, :subscription)}>account settings</a>, you'll find an overview of your usage and limits.
<br /><br />
<%= if @suggested_plan == :enterprise do %>
Your usage exceeds our standard plans, so please reply back to this email for a tailored quote.
<% else %>
<a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan)}> Click here to upgrade your subscription </a>. We recommend you upgrade to the <%= @suggested_plan.volume %>/mo plan. The new charge will be prorated to reflect the amount you have already paid and the time until your current subscription is supposed to expire.
<% end %>
<br /><br />
Do you have questions or need help with anything? Just reply to this email. We're here to help!
<br /><br /> Thanks for understanding and for being a Plausible subscriber!
<p>
Last week we sent a reminder that your site traffic has exceeded the limits of your <%= Plausible.product_name() %> subscription tier for two consecutive months.
Since we haven't received a response, we've had to temporarily lock access to your stats.
</p>

<p>
Your subscription is still active, we're still counting your stats and haven't deleted any of your data but as you have outgrown your subscription tier, we kindly ask you to upgrade to match your new traffic levels.
Upon upgrading to a suitable tier, your dashboard access will be immediately restored.
</p>

<p phx-no-format>
During the last billing cycle (<%= PlausibleWeb.TextHelpers.format_date_range(@usage.last_cycle.date_range) %>), your account recorded <%= PlausibleWeb.AuthView.delimit_integer(@usage.last_cycle.total) %> billable pageviews.
In the billing cycle before that (<%= PlausibleWeb.TextHelpers.format_date_range(@usage.penultimate_cycle.date_range) %>), the usage was <%= PlausibleWeb.AuthView.delimit_integer(@usage.penultimate_cycle.total) %> billable pageviews.
Note that billable pageviews include both standard pageviews and custom events.
In your <a href={PlausibleWeb.Router.Helpers.settings_url(PlausibleWeb.Endpoint, :subscription)}>account settings</a>, you'll find an overview of your usage and limits.
</p>

<p>
<%= if @suggested_plan == :enterprise do %>
Your usage exceeds our standard plans, so please reply back to this email for a tailored quote.
<% else %>
<a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan)}> Click here to upgrade your subscription </a>.
We recommend you upgrade to the <%= @suggested_plan.volume %>/mo plan.
The new charge will be prorated to reflect the amount you have already paid and the time until your current subscription is supposed to expire.
<% end %>
</p>

<p>
Do you have questions or need help with anything? Just reply to this email. We're here to help!
</p>

<p>Thanks for understanding and for being a Plausible subscriber!</p>
17 changes: 11 additions & 6 deletions lib/plausible_web/templates/email/drop_notification.html.heex
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
We've recorded <%= @current_visitors %> visitors on
<a href={"https://" <> @site.domain}><%= @site.domain %></a> in the last 12 hours.
<p>
We've recorded <%= @current_visitors %> visitors on
<a href={"https://" <> @site.domain}><%= @site.domain %></a>
in the last 12 hours.
</p>

<%= if @dashboard_link do %>
<br /><br /> View dashboard: <a href={@dashboard_link}><%= @dashboard_link %></a>
<br /><br /> Something looks off? Please
<a href={@installation_link}>review your installation</a>
to verify that Plausible has been integrated correctly.
<p>View dashboard: <a href={@dashboard_link}><%= @dashboard_link %></a></p>
<p>
Something looks off? Please <a href={@installation_link}>review your installation</a>
to verify that Plausible has been integrated correctly.
</p>
<% end %>

0 comments on commit fbc1a81

Please sign in to comment.