web/about/privacy: don't show plausible info if it's disabled

This commit is contained in:
wukko 2024-09-05 23:34:30 +06:00
parent 59b6cbd8d4
commit aa0991eee4
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -1,4 +1,5 @@
<script lang="ts"> <script lang="ts">
import env from "$lib/env";
import { t } from "$lib/i18n/translations"; import { t } from "$lib/i18n/translations";
import OuterLink from "$components/misc/OuterLink.svelte"; import OuterLink from "$components/misc/OuterLink.svelte";
</script> </script>
@ -38,6 +39,7 @@
</p> </p>
</section> </section>
{#if env.PLAUSIBLE_ENABLED}
<section id="plausible"> <section id="plausible">
<h3>anonymous traffic analytics</h3> <h3>anonymous traffic analytics</h3>
<p> <p>
@ -60,6 +62,7 @@
if you wish to opt out of anonymous analytics, you can do it in <a href="/settings/privacy#analytics">privacy settings</a>. if you wish to opt out of anonymous analytics, you can do it in <a href="/settings/privacy#analytics">privacy settings</a>.
</p> </p>
</section> </section>
{/if}
<section id="cloudflare"> <section id="cloudflare">
<h3>web privacy & security</h3> <h3>web privacy & security</h3>