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
Changes support links in self-host setup to links to GH Discussions (#1368)
Vignesh Joglekarf56992532fc0
diff --git a/lib/plausible_web/templates/auth/activate.html.eex b/lib/plausible_web/templates/auth/activate.html.eexindex 723b77ea85..c32140c5d0 100644--- a/lib/plausible_web/templates/auth/activate.html.eex+++ b/lib/plausible_web/templates/auth/activate.html.eex@@ -21,7 +21,11 @@<ol class="list-disc text-xs text-gray-500 leading-tight space-y-1 mt-1"><li>Check your spam folder</li><li><%= link("Send a new code", class: "underline text-indigo-600", to: "/activate/request-code", method: :post) %> to <%= @conn.assigns[:current_user].email %></li>- <li>Contact <a class="underline text-indigo-600" href="mailto:[email protected]">[email protected]</a> if the problem persists</li>+ <%= if Application.get_env(:plausible, :is_selfhost) do %>+ <li>Ask on our <%= link("community-supported forum", to: "https://github.com/plausible/analytics/discussions", class: "text-indigo-600 underline" ) %></li>+ <% else %>+ <li>Contact <a class="underline text-indigo-600" href="mailto:[email protected]">[email protected]</a> if the problem persists</li>+ <% end %></ol><div class="mt-4 text-sm dark:text-gray-100">Entered the wrong email address?diff --git a/lib/plausible_web/templates/auth/password_reset_request_success.html.eex b/lib/plausible_web/templates/auth/password_reset_request_success.html.eexindex 6769c7b090..29ba2a6159 100644--- a/lib/plausible_web/templates/auth/password_reset_request_success.html.eex+++ b/lib/plausible_web/templates/auth/password_reset_request_success.html.eex@@ -7,6 +7,12 @@Didn't receive an email?</div><div class="mt-2 text-sm text-gray-600 dark:text-gray-400 leading-tight">- Please check your spam folder and contact <a href="mailto:[email protected]" class="text-indigo-500">[email protected]</a> if the problem persists+ Please check your spam folder and+ <%= if Application.get_env(:plausible, :is_selfhost) do %>+ ask on our <a href="https://github.com/plausible/analytics/discussions" class="text-indigo-500">community-supported forum</a>+ <% else %>+ contact <a href="mailto:[email protected]" class="text-indigo-500">[email protected]</a>+ <% end %>+ if the problem persists</div></div>diff --git a/lib/plausible_web/templates/stats/waiting_first_pageview.html.eex b/lib/plausible_web/templates/stats/waiting_first_pageview.html.eexindex e66ebf684f..b2b408bcba 100644--- a/lib/plausible_web/templates/stats/waiting_first_pageview.html.eex+++ b/lib/plausible_web/templates/stats/waiting_first_pageview.html.eex@@ -22,7 +22,9 @@<p class="text-gray-600 dark:text-gray-400 text-xs absolute left-0 bottom-0 mb-6 w-full text-center leading-normal">Need to see the snippet again? <%= link("Click here", to: "/#{URI.encode_www_form(@site.domain)}/snippet", class: "text-indigo-600 text-underline")%><br />Not working? <%= link("Troubleshoot the integration", to: "https://plausible.io/docs/troubleshoot-integration#keep-seeing-a-blinking-green-dot", class: "text-indigo-600 text-underline") %> with our guide- <%= if !Application.get_env(:plausible, :is_selfhost) do %>+ <%= if Application.get_env(:plausible, :is_selfhost) do %>+ first<br /> Still not working? Ask on our <%= link("community-supported forum", to: "https://github.com/plausible/analytics/discussions", class: "text-indigo-600 text-underline" ) %>+ <% else %>first<br /> Still not working? <%= link("Contact us", to: "https://plausible.io/contact", class: "text-indigo-600 text-underline" ) %> and we will help you with your setup<% end %></p>