From aa0991eee487fd54e51bc9f35a769a30642925cc Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 5 Sep 2024 23:34:30 +0600 Subject: [PATCH] web/about/privacy: don't show plausible info if it's disabled --- web/src/routes/about/privacy/+page.svelte | 41 ++++++++++++----------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/web/src/routes/about/privacy/+page.svelte b/web/src/routes/about/privacy/+page.svelte index d7799649..00b71ef9 100644 --- a/web/src/routes/about/privacy/+page.svelte +++ b/web/src/routes/about/privacy/+page.svelte @@ -1,4 +1,5 @@ @@ -38,28 +39,30 @@

-
-

anonymous traffic analytics

-

- for sake of privacy, we use - plausible's anonymous traffic analytics - to get an approximate number of active cobalt users. no identifiable information about you or your requests is ever stored. all data is anonymized and aggregated. the plausible instance we use is hosted & managed by us. -

+ {#if env.PLAUSIBLE_ENABLED} +
+

anonymous traffic analytics

+

+ for sake of privacy, we use + plausible's anonymous traffic analytics + to get an approximate number of active cobalt users. no identifiable information about you or your requests is ever stored. all data is anonymized and aggregated. the plausible instance we use is hosted & managed by us. +

-

- plausible doesn't use cookies and is fully compliant with GDPR, CCPA, and PECR. -

+

+ plausible doesn't use cookies and is fully compliant with GDPR, CCPA, and PECR. +

-

- - {$t("settings.privacy.analytics.learnmore")} - -

+

+ + {$t("settings.privacy.analytics.learnmore")} + +

-

- if you wish to opt out of anonymous analytics, you can do it in privacy settings. -

-
+

+ if you wish to opt out of anonymous analytics, you can do it in privacy settings. +

+
+ {/if}

web privacy & security