Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Make `[email protected]` clickable (#3746)
hq1e28793a45a8e
diff --git a/lib/plausible_web/components/billing/notice.ex b/lib/plausible_web/components/billing/notice.exindex 159e9a48ac..f940a74938 100644--- a/lib/plausible_web/components/billing/notice.ex+++ b/lib/plausible_web/components/billing/notice.ex@@ -296,7 +296,10 @@ defmodule PlausibleWeb.Components.Billing.Notice do"""true ->- ~H"please contact [email protected] to upgrade your subscription"+ ~H"""+ please contact <a href="mailto:[email protected]" class="underline">[email protected]</a>+ to upgrade your subscription+ """endenddiff --git a/lib/plausible_web/templates/billing/change_enterprise_plan_contact_us.html.eex b/lib/plausible_web/templates/billing/change_enterprise_plan_contact_us.html.eexindex 8e0c369853..122d9f6e43 100644--- a/lib/plausible_web/templates/billing/change_enterprise_plan_contact_us.html.eex+++ b/lib/plausible_web/templates/billing/change_enterprise_plan_contact_us.html.eex@@ -9,7 +9,7 @@</div><ul class="w-full py-4 dark:text-gray-100">- <span>You're currently on a custom plan. To modify your limits or unlock additional features, please contact us at [email protected]. We're here to help tailor your plan to your needs.</span>+ <span>You're currently on a custom plan. To modify your limits or unlock additional features, please contact us at <a href="mailto:[email protected]" class="underline">[email protected]</a>. We're here to help tailor your plan to your needs.</span></ul></div>diff --git a/test/plausible_web/components/billing/notice_test.exs b/test/plausible_web/components/billing/notice_test.exsindex feee0c82b2..f71bf456a7 100644--- a/test/plausible_web/components/billing/notice_test.exs+++ b/test/plausible_web/components/billing/notice_test.exs@@ -121,7 +121,9 @@ defmodule PlausibleWeb.Components.Billing.NoticeTest do)assert rendered =~ "Your account is limited to 10 users."- assert rendered =~ "please contact [email protected] to upgrade your subscription"++ assert rendered =~ "[email protected]"+ assert rendered =~ "upgrade your subscription"end@tag :full_build_only@@ -137,6 +139,8 @@ defmodule PlausibleWeb.Components.Billing.NoticeTest do)assert rendered =~ "Your account is limited to 10 users."- assert rendered =~ "please contact [email protected] to upgrade your subscription"++ assert rendered =~ "[email protected]"+ assert rendered =~ "upgrade your subscription"endenddiff --git a/test/plausible_web/controllers/billing_controller_test.exs b/test/plausible_web/controllers/billing_controller_test.exsindex 7437d7cca4..11afb34a6e 100644--- a/test/plausible_web/controllers/billing_controller_test.exs+++ b/test/plausible_web/controllers/billing_controller_test.exs@@ -254,7 +254,7 @@ defmodule PlausibleWeb.BillingControllerTest doassert doc =~ "Looking to adjust your plan?"assert doc =~ "You're currently on a custom plan."- assert doc =~ "please contact us at [email protected]"+ assert Floki.text(doc) =~ "please contact us at [email protected]"endend